-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnow.json
More file actions
32 lines (32 loc) · 729 Bytes
/
now.json
File metadata and controls
32 lines (32 loc) · 729 Bytes
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
{
"name": "dreambook.space",
"alias": [
"dreambook.space"
],
"version": 2,
"regions": ["all"],
"builds": [
{ "src": "www/package.json", "use": "@now/next" },
{ "src": "api/*.ts", "use": "@now/node" }
],
"routes": [
{
"src": "/api/(.*)",
"dest": "/api/$1.ts"
},
{
"src": "/(.*)",
"dest": "/www/$1",
"headers": {
"x-request-path": "$1",
"s-maxage": "432000",
"max-age": "3600"
}
}
],
"env": {
"MONGODB_NAME": "@dreambook_mongo_name",
"MONGODB_USER": "@dreambook_mongo_user",
"MONGODB_PASS": "@dreambook_mongo_pass"
}
}