-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvercel.json
executable file
·90 lines (90 loc) · 2.84 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"version": 2,
"functions": {
"api/*.ts": {
"runtime": "@vercel/node@1.12.1",
"memory": 512,
"maxDuration": 10
}
},
"routes": [
{
"src": "^/(?<path>[^\\.]+)\\.(?<type>css|js|json|svg|png|ico|jpe?g|gif|webp)(?:[?](?<query>.+))?",
"headers": {
"Access-Control-Allow-Origin": "*",
"Cache-Control": "public, max-age=604800, s-maxage=31536000, stale-while-revalidate=86400, stale-if-error=604800",
"x-request-pathname": "$path",
"x-request-filetype": "$type",
"x-request-query": "$query",
"x-request-addr": "$0",
"x-server-name": "icns.ml"
},
"continue": true
},
{
"src": "^/assets/(fonts?|geist|styles?)\\.css(?:[?](?<query>.+))?",
"continue": true,
"methods": [
"GET"
],
"headers": {
"Access-Control-Allow-Origin": "*",
"Cache-Control": "public, max-age=604800, s-maxage=31536000, stale-while-revalidate=86400, stale-if-error=604800",
"Content-Type": "text/css;charset=utf-8"
}
},
{
"src": "^/assets/fonts?\\.css",
"dest": "https://www.monolisa.dev/api/fonts/preview"
},
{
"src": "^/assets/geist\\.css",
"dest": "https://cdn.jsdelivr.net/npm/@geist-ui/style@2.0.0/dist/style.css"
},
{
"src": "^/assets/styles?\\.css",
"dest": "/style.css"
},
{
"src": "^/(favicon|safari-pinned-tab|logo)\\.svg(?:[?](?<query>.+))?",
"dest": "/$1.svg?$query",
"headers": {
"Access-Control-Allow-Origin": "*",
"Cache-Control": "public, max-age=604800, s-maxage=31536000, stale-while-revalidate=86400, stale-if-error=604800"
}
},
{
"src": "^/(favicon|og|apple-touch-icon|logo|mstile-[x0-9]*|favicon-[x0-9]*)\\.(?<type>ico|png)(?:[?](?<query>.+))?",
"dest": "/$1.$type?$query",
"headers": {
"Access-Control-Allow-Origin": "*",
"Cache-Control": "public, max-age=604800, s-maxage=31536000, stale-while-revalidate=86400, stale-if-error=604800"
}
},
{
"src": "^/(?:[?](?<query>.+))?",
"dest": "/api/index.ts?$query",
"headers": {
"Cache-Control": "public, max-age=600, s-maxage=900, stale-while-revalidate=60, stale-if-error=86400"
}
},
{
"src": "^/(?:(?<color>[^/]+)[/])?(?<name>[^\\.]+)(?:\\.(?<type>svg|png))?(?:[?](?<query>.+))?",
"dest": "/api/render.ts?slug=$name&color=$color&type=$type&$query",
"headers": {
"Access-Control-Allow-Origin": "*",
"Cache-Control": "public, max-age=604800, s-maxage=31536000, stale-while-revalidate=604800, stale-if-error=604800"
}
},
{
"handle": "filesystem"
},
{
"src": "^/(.*)",
"dest": "/$1",
"headers": {
"Cache-Control": "public, s-maxage=90, stale-if-error=3600, stale-while-revalidate=30"
}
}
]
}