generated from hack4impact-uiuc/mern-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
vercel.json
47 lines (47 loc) · 1.36 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
{
"regions": ["iad1"],
"env": {
"MONGO_URL": "@memberdb_tool_db_url",
"GOOGLE_CLIENT_ID": "@memberdb_tool_google_client_id",
"GOOGLE_CLIENT_SECRET": "@memberdb_tool_google_client_secret",
"SESSION_SECRET": "@memberdb_tool_session_secret",
"OAUTH_CALLBACK_URI": "https://memberdb-tool.vercel.app/api/auth/redirectURI",
"SERVICE_URL": "@memberdb_tool_service_url"
},
"builds": [
{ "src": "api/src/app.js", "use": "@vercel/node" },
{
"src": "client/package.json",
"use": "@vercel/static-build",
"config": { "distDir": "build" }
}
],
"routes": [
{
"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": "/favicon.ico", "dest": "client/favicon.ico" },
{
"src": "/asset-manifest.json",
"dest": "client/asset-manifest.json"
},
{
"src": "/precache-manifest.(.*)",
"dest": "client/precache-manifest.$1"
},
{ "src": "/manifest.json", "dest": "client/manifest.json" },
{
"src": "/service-worker.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "client/service-worker.js"
},
{ "src": "/(.*)", "dest": "client/index.html" }
]
}