-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnow-stage.json
136 lines (135 loc) · 3.32 KB
/
now-stage.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"version": 2,
"name": "ibcol-stage",
"alias": [
"www.uat.ibcol.org",
"uat.ibcol.org"
],
"env": {
"ENV": "stage",
"NODE_ENV": "production",
"SALT": ")6sasasWeight-Waste-Stems-Dead-5s81*@()#@",
"BUCKET_NAME": "ibcol-uploads-uat",
"GOOGLE_APPLICATION_CREDENTIALS": "/tmp/service-account.json",
"GOOGLE_APPLICATION_CREDENTIALS_DATA": "@ibcol-gcloudserviceaccount-stage",
"FILEPOND_API_ENDPOINT": "/file/"
},
"build": {
"env": {
"ENV": "stage",
"NODE_ENV": "production",
"FILEPOND_API_ENDPOINT": "/file/",
"SALT": ")6sasasWeight-Waste-Stems-Dead-5s81*@()#@"
}
},
"regions": [
"all"
],
"github": {
"enabled": false,
"autoAlias": false,
"silent": true,
"autoJobCancelation": true
},
"builds": [
{
"src": "node-routes/defaultRoute.js",
"use": "@now/node@latest"
},
{
"src": "node-routes/filepondRoute.js",
"use": "@now/node@latest"
},
{
"src": "next.config.js",
"use": "@now/next"
}
],
"routes": [
{
"src": "/(((?!\\?|#|\\.|_next).)*((?!\\?|/|#|\\.).))",
"status": 301,
"headers": {
"Location": "/$1/"
}
},
{
"src": "/_next/static/(?:[^/]+/pages|chunks|runtime)/.+",
"headers": {
"cache-control": "immutable,max-age=31536000"
}
},
{
"src": "/_next/(.*)",
"dest": "/_next/$1"
},
{
"src": "/_/.*",
"dest": "/node-routes/defaultRoute.js"
},
{
"src": "/",
"dest": "/node-routes/defaultRoute.js"
},
{
"src": "/file([/]*)",
"dest": "/node-routes/filepondRoute.js",
"headers": {
"Access-Control-Allow-Origin": "*"
}
},
{
"src": "/file/(.*)",
"dest": "/node-routes/filepondRoute.js",
"headers": {
"Access-Control-Allow-Origin": "*"
}
},
{
"src": "/(?<locale>[^/]*)/",
"dest": "/next/landing?locale=$locale"
},
{
"src": "/(?<locale>[^/]*)/(?<page>(home|contact|program|join-us|ibcol|rules|landing|registration))/",
"dest": "/next/$page?locale=$locale",
"headers": {
"cache-control": "s-maxage=31536000, max-age=0"
}
},
{
"src": "/(?<locale>[^/]*)/(?<page>[^/]*)/",
"dest": "/next/landing?locale=$locale&catch-all=true",
"headers": { "cache-control": "s-maxage=31536000, max-age=0" }
},
{
"src": "/(?<locale>[^/]*)/registration/login/",
"dest": "/next/registration/login?locale=$locale"
},
{
"src": "/(?<locale>[^/]*)/registration/verify/(.*)/(.*)/",
"dest": "/next/registration/verify?locale=$locale&verificationCode=$2&email=$3"
},
{
"src": "/(?<locale>[^/]*)/admin/verify/(.*)/(.*)/",
"dest": "/next/admin/verify?locale=$locale&verificationCode=$2&email=$3"
},
{
"src": "/(?<locale>[^/]*)/admin/dashboard/",
"dest": "/next/admin/dashboard?locale=$locale"
},
{
"src": "/(?<locale>[^/]*)/ibcol/2018/",
"dest": "/next/ibcol/2018?locale=$locale",
"headers": {
"cache-control": "s-maxage=31536000, max-age=0"
}
},
{
"src": "/(?<locale>[^/]*)/ibcol/2019/",
"dest": "/next/ibcol/2019?locale=$locale",
"headers": {
"cache-control": "s-maxage=31536000, max-age=0"
}
}
]
}