-
Notifications
You must be signed in to change notification settings - Fork 0
/
now.json
80 lines (80 loc) · 1.8 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"version": 2,
"alias": [
"oliabank"
],
"env": {
"pg_user_faas": "@pg_user_faas",
"pg_host_faas": "@pg_host_faas",
"pg_dbname_faas": "@pg_dbname_faas",
"pg_password_faas": "@pg_password_faas",
"cookie_secret": "@faas_cookie_sign"
},
"builds": [
{
"src": "backend/*.js",
"use": "@now/node"
},
{
"src": "package.json",
"use": "@now/static-build",
"config": {
"distDir": "dist"
}
}
],
"routes": [
{
"src": "/api/signup",
"dest": "/backend/signup.js",
"methods": [
"POST"
]
},
{
"src": "/api/createTransaction",
"dest": "/backend/createTransaction.js",
"methods": [
"POST"
]
},
{
"src": "/api/login",
"dest": "/backend/login.js",
"methods": [
"POST"
]
},
{
"src": "/api/createAccount",
"dest": "/backend/createAccount.js",
"methods": [
"POST"
]
},
{
"src": "/api/(.*)",
"dest": "/backend/$1.js",
"methods": [
"GET"
]
},
{
"src": "/me",
"dest": "/index.html"
},
{
"src": "/account",
"dest": "/index.html"
},
{
"src": "/*",
"dest": "/index.html"
},
{
"src": "/",
"dest": "/index.html"
}
],
"public": true
}