Skip to content

feat(api): enhance API configuration and add new scripts#7

Merged
maksymhryzodub-prog merged 1 commit into
mainfrom
fix/ranch-start
Jul 15, 2026
Merged

feat(api): enhance API configuration and add new scripts#7
maksymhryzodub-prog merged 1 commit into
mainfrom
fix/ranch-start

Conversation

@maksymhryzodub-prog

Copy link
Copy Markdown
Contributor

FIXES for easy init ranch app

  1. The admin/app (openapi-ts) vs api race condition—it was crashing before swagger-spec.json was ready → added a wait.
  2. Outdated Prisma client—prisma generate wasn’t run after prisma-import → regenerated it; fixed via pretest.
  3. docker compose up errors were buried in the Turbo logs → added a script with explicit diagnostics of the cause.
  4. GHCR: unauthorized → 403— token was OK, but there was no access to the package → granted access, now working.
  5. browser-pool only runs on amd64, but you have arm64 → added platform: linux/amd64 to the Compose file.
  6. k3d was missing → no network connection to k3d-ranch → installed k3d, created a cluster.

- Updated `apiUrl` in Nuxt config to fallback on `process.env.API_URL` for better local development support.
- Modified `predev` script in both admin and app package.json to include a wait-for-swagger script for improved build reliability.
- Introduced `docker-up.sh` script to handle Docker compose errors more gracefully during local development.
- Added `wait-for-swagger.mjs` script to ensure the API is fully started before proceeding with the build process.
- Enhanced API schemas and types to support new features, including bulk import from archives and file deletion capabilities.
@maksymhryzodub-prog maksymhryzodub-prog merged commit 1f6c60e into main Jul 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant