-
Notifications
You must be signed in to change notification settings - Fork 0
/
now.json
30 lines (30 loc) · 870 Bytes
/
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
{
"version": 2,
"env": {
"GOOGLE_API_KEY": "@youtube-json-google-key"
},
"builds": [
{ "src": "playlist-items.js", "use": "@now/node" },
{ "src": "channel-broadcasts.js", "use": "@now/node" },
{
"src": "public/**",
"use": "@now/static"
}
],
"routes": [
{
"src": "/playlist-items/(?<playlistId>[^/]*)",
"headers": {"cache-control": "s-maxage=300, stale-while-revalidate"},
"dest": "/playlist-items.js?id=$playlistId"
},
{
"src": "/channel-broadcasts/(?<channelId>[^/]*)",
"headers": {"cache-control": "s-maxage=60, stale-while-revalidate"},
"dest": "/channel-broadcasts.js?id=$channelId"
},
{
"src": "/(.*)",
"dest": "/public/$1"
}
]
}