Skip to content

Commit 78784bc

Browse files
committed
Fix Vercel deployment: remove conflicting builds property, use functions only
1 parent d037df1 commit 78784bc

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

vercel.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"version": 2,
3-
"builds": [
4-
{
5-
"src": "server.js",
6-
"use": "@vercel/node"
3+
"functions": {
4+
"server.js": {
5+
"runtime": "@vercel/node",
6+
"maxDuration": 30
77
}
8-
],
8+
},
99
"routes": [
1010
{
1111
"src": "/api-docs(.*)",
@@ -18,12 +18,5 @@
1818
],
1919
"env": {
2020
"NODE_ENV": "production"
21-
},
22-
"functions": {
23-
"server.js": {
24-
"maxDuration": 30
25-
}
26-
},
27-
"buildCommand": "npm install",
28-
"outputDirectory": "."
21+
}
2922
}

0 commit comments

Comments
 (0)