-
Notifications
You must be signed in to change notification settings - Fork 2
/
now.json
66 lines (66 loc) · 1.34 KB
/
now.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
{
"version": 2,
"name": "LabTrail",
"env": {
"MONGODB_URI": "@mongodb_uri",
"JWT_SECRET": "@jwt_secret"
},
"build": {
"env": {
"REACT_APP_APOLLO_URL": "/api"
}
},
"builds": [
{
"src": "auth/index.js",
"use": "@now/node"
},
{
"src": "qr/index.js",
"use": "@now/node"
},
{
"src": "api/index.js",
"use": "@now/node"
},
{
"src": "app/package.json",
"use": "@now/static-build",
"config": { "distDir": "build" }
}
],
"routes": [
{
"src": "/api",
"dest": "api/index.js"
},
{
"src": "/qr/(.*)",
"dest": "qr/index.js"
},
{
"src": "/sso/(.*)",
"dest": "auth/index.js"
},
{
"src": "/static/(.*)",
"headers": { "cache-control": "s-maxage=31536000,immutable" },
"dest": "app/static/$1"
},
{ "src": "/favicon.(.*)", "dest": "app/favicon.$1" },
{ "src": "/asset-manifest.json", "dest": "app/asset-manifest.json" },
{ "src": "/manifest.json", "dest": "app/manifest.json" },
{ "src": "/precache-manifest.(.*)", "dest": "app/precache-manifest.$1" },
{
"src": "/service-worker.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "app/service-worker.js"
},
{ "src": "/sockjs-node/(.*)", "dest": "app/sockjs-node/$1" },
{
"src": "/(.*)",
"headers": { "cache-control": "s-maxage=0" },
"dest": "app/index.html"
}
]
}