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,
|
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue