-
Notifications
You must be signed in to change notification settings - Fork 1
/
now.json
43 lines (43 loc) · 1.11 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
{
"version": 2,
"builds": [
{ "src": "set.js", "use": "@now/node" },
{ "src": "get.js", "use": "@now/node" }
],
"github": { "enabled": false },
"routes": [
{
"src": "/",
"methods": ["POST", "OPTIONS"],
"headers": {
"content-type": "application/json",
"access-control-allow-headers": "*",
"access-control-allow-methods": "POST, OPTIONS",
"access-control-allow-origin": "https://outvoice.github.io"
},
"dest": "/set.js"
},
{
"src": "/(?<id>[^/]+)",
"methods": ["GET", "OPTIONS"],
"headers": {
"content-type": "application/json",
"cache-control": "public, max-age=604800, s-maxage=604800",
"access-control-allow-headers": "*",
"access-control-allow-methods": "GET, OPTIONS",
"access-control-allow-origin": "https://outvoice.github.io"
},
"dest": "/get.js?id=$id"
},
{
"src": "/.*",
"status": 301,
"headers": { "Location": "https://outvoice.github.io" }
}
],
"env": {
"DBUSER": "@dbuser",
"DBPASS": "@dbpass",
"DBURL": "@dburl"
}
}