-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnow.json
50 lines (50 loc) · 1.19 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
{
"version": 2,
"alias": "webmention.app",
"routes": [
{
"src": "/check/?.*",
"dest": "/routes/check.js",
"methods": ["GET", "POST"],
"headers": {
"Access-Control-Allow-Origin": "*"
}
},
{ "src": "/auth/?.*", "dest": "/routes/auth.js" },
{ "src": "/stats", "dest": "/routes/stats.js", "methods": ["POST"] },
{
"methods": ["GET"],
"src": "^/",
"dest": "/dist/index.html"
},
{
"methods": ["GET"],
"src": "^/(.*)",
"dest": "/dist/$1"
}
],
"build": {
"env": {
"GITHUB_CLIENT_ID": "@wm-github-id",
"GITHUB_CLIENT_SECRET": "@wm-github-secret",
"DB_KEY_ID": "@wm-aws-key-id",
"DB_ACCESS_KEY": "@wm-aws-access-key",
"API": "https://webmention.app/api"
}
},
"env": {
"GITHUB_CLIENT_ID": "@wm-github-id",
"GITHUB_CLIENT_SECRET": "@wm-github-secret",
"DB_KEY_ID": "@wm-aws-key-id",
"DB_ACCESS_KEY": "@wm-aws-access-key",
"API": "https://webmention.app/api"
},
"builds": [
{ "src": "/routes/**/*.js", "use": "@now/node" },
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": "dist" }
}
]
}