Fix Vercel configuration: use functions instead of builds to avoid conflict
This commit is contained in:
parent
4b941ff318
commit
35d7a42e32
16
vercel.json
16
vercel.json
|
|
@ -2,12 +2,11 @@
|
|||
"version": 2,
|
||||
"buildCommand": "npm run build",
|
||||
"outputDirectory": "client/dist",
|
||||
"builds": [
|
||||
{
|
||||
"src": "server/index.ts",
|
||||
"use": "@vercel/node"
|
||||
"functions": {
|
||||
"server/index.ts": {
|
||||
"maxDuration": 30
|
||||
}
|
||||
],
|
||||
},
|
||||
"routes": [
|
||||
{
|
||||
"src": "/api/(.*)",
|
||||
|
|
@ -21,10 +20,5 @@
|
|||
"src": "/(.*)",
|
||||
"dest": "/index.html"
|
||||
}
|
||||
],
|
||||
"functions": {
|
||||
"server/index.ts": {
|
||||
"maxDuration": 30
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue