-
Notifications
You must be signed in to change notification settings - Fork 9
/
vercel.json
52 lines (52 loc) · 999 Bytes
/
vercel.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"version": 2,
"builds": [
{
"src": "app.py",
"use": "@vercel/python",
"config": {
"runtime": "python3.9"
}
},
{
"src": "build.sh",
"use": "@vercel/static-build",
"config": {
"distDir": "staticfiles_build"
}
}
],
"routes": [
{
"src": "/static/(.*)",
"headers": { "cache-control": "s-maxage=31536000, immutable" },
"dest": "/static/$1"
},
{
"src": "/",
"dest": "app.py"
},
{
"src": "/products/",
"dest": "app.py"
},
{
"src": "/product/:id/",
"dest": "app.py"
},
{
"src": "/admin/",
"dest": "app.py"
},
{
"src": "/api/(.*)",
"headers": { "cache-control": "s-maxage=0" },
"dest": "app.py"
},
{
"src": "/(.*)",
"status": 404,
"dest": "app.py"
}
]
}