Skip to content

Commit 8a3e2fb

Browse files
Simplify Vercel configuration to fix frontend build handling
Remove builds array from vercel.json to resolve the warning: "Due to builds existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply" This allows Vercel to properly handle frontend build deployment and use the buildCommand to copy frontend/build to backend/. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4adff11 commit 8a3e2fb

1 file changed

Lines changed: 4 additions & 18 deletions

File tree

vercel.json

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
11
{
22
"version": 2,
3-
"builds": [
4-
{
5-
"src": "backend/server.ts",
6-
"use": "@vercel/node",
7-
"config": {
8-
"maxLambdaSize": "50mb",
9-
"runtime": "nodejs20.x"
10-
}
11-
}
12-
],
13-
"routes": [
14-
{
15-
"src": "/(.*)",
16-
"dest": "/backend/server.ts"
17-
}
18-
],
193
"installCommand": "npm run install-all",
204
"buildCommand": "npm run build && cp -r frontend/build backend/",
21-
"env": {
22-
"NODE_ENV": "production"
5+
"functions": {
6+
"backend/dist/server.js": {
7+
"runtime": "nodejs20.x"
8+
}
239
}
2410
}

0 commit comments

Comments
 (0)