-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathnow.json
More file actions
55 lines (55 loc) · 1.78 KB
/
now.json
File metadata and controls
55 lines (55 loc) · 1.78 KB
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
{
"version": 2,
"name": "spoti-vote",
"alias": ["www.spoti-vote.com", "spoti-vote.com"],
"public": false,
"builds": [
{"src": "package.json", "use": "@now/static-build", "config": {"distDir": "frontend/build"}},
{"src": "backend/server.js", "use": "@now/node"}
],
"routes": [
{
"src": "^http://(.*)",
"status": 301,
"headers": { "Location": "https://spoti-vote.com/$1" }
},{
"src": "/api/{.*}",
"dest": "/backend/server.js"
}, {
"src": "/static/(.*)",
"dest": "/static/$1",
"headers": { "Cache-Control": "max-age=60, s-maxage=86400" }
}, {
"src": "/logos/(.*)",
"dest": "/logos/$1",
"headers": { "Cache-Control": "max-age=60, s-maxage=86400" }
}, {
"src": "/favicon.ico",
"dest": "/favicon.ico",
"headers": { "Cache-Control": "max-age=60, s-maxage=86400" }
}, {
"src": "/manifest.json",
"dest": "/manifest.json",
"headers": { "Cache-Control": "max-age=60, s-maxage=86400" }
}, {
"src": "/service-worker.js",
"dest": "/service-worker.js",
"headers": { "Cache-Control": "no-cache" }
}, {
"src": "/precache-manifest.*.js",
"dest": "/precache-manifest.*.js",
"headers": { "Cache-Control": "no-cache" }
},{
"src": "/(.*)",
"dest": "/index.html",
"headers": {"cache-control": "s-maxage=0"}
}
],
"env": {
"PORT": "443",
"PORTBACK": "443",
"ADDRESS": "backend.spoti-vote.com",
"SPOTIFY_CLIENT_ID": "0",
"SPOTIFY_CLIENT_SECRET": "0"
}
}