-
Notifications
You must be signed in to change notification settings - Fork 1
/
vercel.json
88 lines (88 loc) · 2 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"regions": ["iad1"],
"env": {
"MONGO_URL": "@ymca_db_uri",
"MAPBOX_KEY": "@ymca_mapbox_key",
"IMGUR_KEY": "@ymca_imgur_key",
"GOOGLE_KEY": "@ymca_google_key",
"INFRA_MONGO_URI": "@ymca_auth_mongo_uri",
"INFRA_EMAIL": "@ymca_auth_email",
"INFRA_CLIENT_ID": "@ymca_auth_client_id",
"INFRA_CLIENT_SECRET": "@ymca_client_secret",
"INFRA_REFRESH_TOKEN": "@ymca_refresh"
},
"builds": [
{
"src": "api/src/app.js",
"use": "@vercel/node"
},
{
"src": "client/package.json",
"use": "@vercel/static-build",
"config": {
"distDir": "build"
}
},
{ "src": "auth/src/nowServer.js", "use": "@vercel/node" }
],
"routes": [
{ "src": "/auth/(.*)", "dest": "auth/src/nowServer.js" },
{
"src": "/api/(.*)",
"headers": {
"cache-control": "s-maxage=0"
},
"dest": "api/src/app.js"
},
{
"src": "/static/(.*)",
"headers": {
"cache-control": "s-maxage=31536000,immutable"
},
"dest": "client/static/$1"
},
{
"src": "/asset/images/(.*)",
"headers": {
"cache-control": "s-maxage=604800"
},
"dest": "client/asset/images/$1"
},
{
"src": "/asset/icon/(.*)",
"headers": {
"cache-control": "s-maxage=604800"
},
"dest": "client/asset/icon/$1"
},
{
"src": "/asset/partners/(.*)",
"headers": {
"cache-control": "s-maxage=604800"
},
"dest": "client/asset/partners/$1"
},
{
"src": "/asset/subcategories/(.*)",
"headers": {
"cache-control": "s-maxage=604800"
},
"dest": "client/asset/subcategories/$1"
},
{
"src": "/asset/manifest.json",
"dest": "client/asset/manifest.json"
},
{
"src": "/client/src/service-worker.js",
"headers": {
"cache-control": "s-maxage=0"
},
"dest": "client/service-worker.js"
},
{
"src": "/(.*)",
"dest": "client/index.html"
}
]
}