-
Notifications
You must be signed in to change notification settings - Fork 0
/
now.json
82 lines (82 loc) · 2.08 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"version": 2,
"build": {
"env": {
"FONTAWESOME_NPM_AUTH_TOKEN": "@font-awesome-npm-token"
}
},
"env": {
"DB_NAME": "@db-name",
"DB_USERNAME": "@db-username",
"DB_PASSWORD": "@db-password"
},
"builds": [
{ "src": "server/graphql/index.ts", "use": "@now/node" },
{ "src": "server/api/**/*.ts", "use": "@now/node" },
{
"src": "webapp/package.json",
"use": "@now/static-build",
"config": { "distDir": "build" }
}
],
"routes": [
{
"src": "/gql",
"dest": "/server/graphql/index.ts"
},
{
"src": "/api/(.*)",
"dest": "/server/api/$1.ts"
},
{
"src": "/static/(.*)",
"headers": { "cache-control": "s-maxage=31536000,immutable" },
"dest": "/webapp/static/$1"
},
{ "src": "/favicon.ico", "dest": "/webapp/public/favicon.ico" },
{
"src": "/asset-manifest.json",
"dest": "/webapp/asset-manifest.json"
},
{ "src": "/manifest.json", "dest": "/webapp/manifest.json" },
{
"src": "/precache-manifest.(.*)",
"dest": "/webapp/precache-manifest.$1"
},
{
"src": "/service-worker.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/webapp/service-worker.js"
},
{
"src": "/sockjs-node/(.*)",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/webapp/sockjs-node/$1"
},
{
"src": "/__webpack_dev_server__/(.*)",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/webapp/__webpack_dev_server__/$1"
},
{
"src": "/(.*).hot-update.js.map",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/webapp/$1.hot-update.js.map"
},
{
"src": "/(.*).hot-update.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/webapp/$1.hot-update.js"
},
{
"src": "/(.*).hot-update.json",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/webapp/$1.hot-update.json"
},
{
"src": "/(.*)",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/webapp/index.html"
}
]
}