🐛 Bug: Fix the bug where functions and builds properties cannot be used simultaneously in Vercel configuration.
Browse files- vercel.json +13 -15
vercel.json
CHANGED
@@ -1,19 +1,17 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
],
|
8 |
-
"routes": [
|
9 |
-
{
|
10 |
-
"src": "/(.*)",
|
11 |
-
"dest": "main.py"
|
12 |
-
}
|
13 |
-
],
|
14 |
-
"functions": {
|
15 |
-
"main.py": {
|
16 |
"maxDuration": 60
|
17 |
}
|
18 |
}
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
{
|
2 |
+
"builds": [
|
3 |
+
{
|
4 |
+
"src": "main.py",
|
5 |
+
"use": "@vercel/python",
|
6 |
+
"config": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
"maxDuration": 60
|
8 |
}
|
9 |
}
|
10 |
+
],
|
11 |
+
"routes": [
|
12 |
+
{
|
13 |
+
"src": "/(.*)",
|
14 |
+
"dest": "main.py"
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|