-
Notifications
You must be signed in to change notification settings - Fork 3
/
vercel.json
37 lines (37 loc) · 905 Bytes
/
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
{
"ignoreCommand": "[ \"$VERCEL_ENV\" != production ]",
"functions": {
"api/**/*.rs": {
"runtime": "[email protected]"
}
},
"rewrites": [
{
"source": "/api/repo/:path(.*)",
"destination": "/api/github/:path"
},
{
"source": "/api/npm/:path((?!@).*)",
"destination": "/api/npm/_/:path"
},
{
"source": "/api/npm/:scope/:package/latest-version",
"destination": "/api/npm/:scope/:package/versions/latest"
},
{
"source": "/api/repo/:owner/:name/latest-release",
"destination": "/api/repo/:owner/:name/releases/latest"
},
{
"source": "/api/repo/:owner/:name/latest-tag",
"destination": "/api/repo/:owner/:name/tags/latest"
}
],
"redirects": [
{
"source": "/",
"destination": "https://github.com/mason-org/mason-registry-api",
"permanent": false
}
]
}