-
Notifications
You must be signed in to change notification settings - Fork 0
/
vercel.json
56 lines (55 loc) · 1.47 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
{
"version": 2,
"regions": ["iad1"],
"name": "life-after-hate",
"alias": "lah.vercel.app",
"builds": [
{ "src": "backend/app.js", "use": "@vercel/node" },
{
"src": "frontend/package.json",
"use": "@vercel/static-build",
"config": { "distDir": "build" }
}
],
"routes": [
{
"src": "/api/(.*)",
"headers": { "cache-control": "s-maxage=0" },
"dest": "backend/app.js"
},
{
"src": "/static/(.*)",
"headers": { "cache-control": "s-maxage=31536000,immutable" },
"dest": "frontend/static/$1"
},
{ "src": "/favicon.ico", "dest": "/frontend/favicon.ico" },
{
"src": "/asset-manifest.json",
"dest": "frontend/asset-manifest.json"
},
{ "src": "/manifest.json", "dest": "frontend/manifest.json" },
{
"src": "/precache-manifest.(.*)",
"dest": "frontend/precache-manifest.$1"
},
{
"src": "/service-worker.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "frontend/service-worker.js"
},
{ "src": "/(.*)", "dest": "frontend/index.html" }
],
"env": {
"GOOGLE_CLIENT_ID": "@lah_google_client_id",
"GOOGLE_CLIENT_SECRET": "@lah_google_client_secret",
"OAUTH_CALLBACK_URI": "@lah_oauth_callback_uri",
"MAPQUEST_URI": "@lah_mapquest_uri",
"LOGGLY_TOKEN": "@loggly_token",
"SESSION_SECRET": "@lah_session_secret"
},
"build": {
"env": {
"REACT_APP_MAPBOX_ACCESS_TOKEN": "@lah_mapbox_token"
}
}
}