Fix: Vercel build error by adding root vercel.json for monorepo#10
Fix: Vercel build error by adding root vercel.json for monorepo#10raziquehasan wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a root-level Vercel configuration so Vercel can build/deploy the Frontend Vite app in this monorepo layout (with Backend living separately).
Changes:
- Add root
vercel.jsonto run the Vite build insideFrontendand publishFrontend/dist. - Remove an unused root
package-lock.json(there’s no rootpackage.json; the real lockfile is underFrontend/).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
vercel.json |
Configures Vercel build/install commands and output directory for the Frontend Vite app. |
package-lock.json |
Removes a root lockfile that doesn’t correspond to any root Node project. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "buildCommand": "cd Frontend && npm install && npm run build", | |||
There was a problem hiding this comment.
buildCommand runs npm install even though installCommand already does. On Vercel this typically means dependencies are installed twice, which slows builds and can undermine caching. Consider removing the install step from buildCommand (or removing installCommand and keeping install only once) so install happens a single time.
| "buildCommand": "cd Frontend && npm install && npm run build", | |
| "buildCommand": "cd Frontend && npm run build", |
|
@raziquehasan is attempting to deploy a commit to the ashishvermash's projects Team on Vercel. A member of the Team first needs to authorize it. |
thik kar diye