Skip to content

Commit 909cd16

Browse files
committed
repalce functions with builds in vercel.json
1 parent b13ad30 commit 909cd16

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

backend/vercel.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
{
22
"buildCommand": "bash vercel-build.sh",
3-
"functions": {
4-
"api/wsgi.py": {
5-
"maxDuration": 30
3+
"builds": [
4+
{
5+
"src": "api/wsgi.py",
6+
"use": "@vercel/python",
7+
"config": {
8+
"maxLambdaSize": "15mb"
9+
}
610
}
7-
},
11+
],
812
"routes": [
913
{
1014
"src": "/(.*)",
1115
"dest": "api/wsgi.py"
1216
}
1317
],
14-
"build": {
15-
"env": {
16-
"PYTHONPATH": "."
17-
}
18-
},
19-
"outputDirectory": "."
18+
"env": {
19+
"PYTHONPATH": "."
20+
}
2021
}

0 commit comments

Comments
 (0)