Fix Vercel deployment configuration for monorepo structure #4516
ccantynzcommented Mar 5, 2026
Originally written by @vercel[bot] on GitHub.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| bookaride-v2 | Preview, Comment | Mar 5, 2026 8:20am |
Cross-repo impact
See what breaks downstream if this PR merges.
⮌ Merged
This pull request was merged into main.
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts
Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/BookarideV2/pull/1
Summary
Updated Vercel deployment configuration to properly support the monorepo structure by creating a root-level
vercel.jsonconfiguration while adjusting the frontend-specific configuration for correct path resolution.Key Changes
vercel.json: Added a new configuration file at the project root that specifies the correct build command (cd frontend && npm install && npm run build) and output directory (frontend/dist) for the monorepo structurefrontend/vercel.json: Modified the frontend-specific configuration to use relative paths (npm install && npm run build,dist) since it will be executed from within the frontend directory/(.*) → /index.html) in both configurations to properly handle client-side routing for single-page applicationsImplementation Details
The changes establish a proper deployment strategy for a monorepo where:
https://claude.ai/code/session_017cCnug3uxjgsu996XWF5ac