Fix Vercel configuration: use functions instead of builds to avoid conflict

This commit is contained in:
Jeff Emmett 2025-06-19 13:00:17 +02:00
parent 4b941ff318
commit 35d7a42e32
1 changed files with 5 additions and 11 deletions

View File

@ -2,12 +2,11 @@
"version": 2, "version": 2,
"buildCommand": "npm run build", "buildCommand": "npm run build",
"outputDirectory": "client/dist", "outputDirectory": "client/dist",
"builds": [ "functions": {
{ "server/index.ts": {
"src": "server/index.ts", "maxDuration": 30
"use": "@vercel/node"
} }
], },
"routes": [ "routes": [
{ {
"src": "/api/(.*)", "src": "/api/(.*)",
@ -21,10 +20,5 @@
"src": "/(.*)", "src": "/(.*)",
"dest": "/index.html" "dest": "/index.html"
} }
], ]
"functions": {
"server/index.ts": {
"maxDuration": 30
}
}
} }