This repository has been archived by the owner on Apr 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
now.json
58 lines (58 loc) · 1.28 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
{
"version": 2,
"name": "kids-save-ocean",
"alias": "kids-save-ocean.now.sh",
"build": {
"env": {
"BACKEND_URL": "@kso_backend_url",
"FIREBASE_APIKEY": "@kso_firebase_apikey",
"AUTH_DOMAIN": "@kso_auth_domain",
"DATABASE_URL": "@kso_database_url",
"STORAGE_BUCKET": "@kso_storage_bucket"
}
},
"env": {
"MONGO_DATABASE": "@kso_db_uri",
"AUTH_SECRET": "@kso_auth_secret",
"INFRA_MONGO_URI": "@kso_infra_mongo_uri",
"INFRA_EMAIL": "@kso_infra_email",
"INFRA_CLIENT_ID": "@kso_infra_client_id",
"INFRA_CLIENT_SECRET": "@kso_infra_client_secret",
"INFRA_REFRESH_TOKEN": "@kso_infra_refresh_token"
},
"builds": [
{
"src": "client/package.json",
"use": "@now/next"
},
{
"src": "api/app.js",
"use": "@now/node"
},
{
"src": "auth-server/src/startServer.js",
"use": "@now/node"
}
],
"routes": [
{
"src": "/api/(.*)",
"headers": {
"cache-control": "s-maxage=0"
},
"dest": "api/app.js"
},
{
"src": "/auth/(.*)",
"headers": {
"cache-control": "s-maxage=0"
},
"dest": "auth-server/src/startServer.js"
},
{
"src": "/(.*)",
"dest": "/client/$1",
"continue": true
}
]
}