-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathnow.json
55 lines (55 loc) · 1.36 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
{
"version": 2,
"functions": {
"api/v1/yt-dlp.py": {
"maxDuration": 300
},
"api/v1/playlist-items.ts": {
"maxDuration": 300
},
"api/v1/channel-broadcasts.ts": {
"maxDuration": 60
}
},
"headers": [
{
"source": "/playlist-items/:path*",
"headers": [
{
"key": "cache-control",
"value": "s-maxage=300, stale-while-revalidate"
}
]
},
{
"source": "/channel-broadcasts/:path*",
"headers": [
{
"key": "cache-control",
"value": "s-maxage=60, stale-while-revalidate"
}
]
}
],
"rewrites": [
{
"source": "/api/info",
"destination": "api/v1/yt-dlp.py"
},
{
"source": "/api/version",
"destination": "api/v1/yt-dlp.py"
},
{
"source": "/playlist-items/:path*",
"destination": "api/v1/playlist-items.ts"
}, {
"source": "/channel-broadcasts/:path*",
"destination": "api/v1/channel-broadcasts.ts"
},
{
"source": "/(.*)",
"destination": "/public/$1"
}
]
}