forked from ThatGuySam/vumbnail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvercel.json
58 lines (58 loc) · 2.01 KB
/
vercel.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
{
"version": 2,
"github": {
"silent": true
},
"routes": [
{
"src": "/",
"headers": { "cache-control": "no-cache" },
"dest": "public/index.html"
},
{
"src": "/favicon.ico",
"headers": { "cache-control": "no-cache" },
"dest": "public/favicon.ico"
},
{
"src": "/robots.txt",
"headers": { "cache-control": "no-cache" },
"dest": "public/robots.txt"
},
{
"src": "/media/:match*",
"headers": { "cache-control": "public, s-maxage=2419200, stale-while-revalidate" },
"dest": "public/media/:match*"
},
{
"src": "/341241947.mp4",
"headers": { "cache-control": "public, s-maxage=2419200, stale-while-revalidate" },
"dest": "public/media/breathtaking.mp4"
},
{
"src": "/(?<vimeoId>[^/]*)_small.jpg",
"headers": {"cache-control": "public, s-maxage=2419200, stale-while-revalidate"},
"dest": "/api/video?id=$vimeoId&key=thumbnail_small"
},
{
"src": "/(?<vimeoId>[^/]*)_medium.jpg",
"headers": {"cache-control": "public, s-maxage=2419200, stale-while-revalidate"},
"dest": "/api/video?id=$vimeoId&key=thumbnail_medium"
},
{
"src": "/(?<vimeoId>[^/]*)_large.jpg",
"headers": {"cache-control": "public, s-maxage=2419200, stale-while-revalidate"},
"dest": "/api/video?id=$vimeoId&key=thumbnail_large"
},
{
"src": "/(?<vimeoId>[^/]*).jpg",
"headers": {"cache-control": "public, s-maxage=2419200, stale-while-revalidate"},
"dest": "/api/video?id=$vimeoId&key=thumbnail_large"
},
{
"src": "/(?<vimeoId>[^/]*)",
"headers": {"cache-control": "public, s-maxage=2419200, stale-while-revalidate"},
"dest": "/api/video?id=$vimeoId"
}
]
}