You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
772 B
34 lines
772 B
{
|
|
"version": 2,
|
|
"alias": [
|
|
"v2.badgen.net"
|
|
],
|
|
"regions": ["sfo", "lhr", "hnd"],
|
|
"builds": [
|
|
{ "src": "endpoints/*.ts", "use": "@now/node" },
|
|
{ "src": "package.json", "use": "@now/static-build" }
|
|
],
|
|
"routes": [
|
|
{ "src": "/(?<name>[^/]+)/.*", "dest": "/endpoints/$name.ts" },
|
|
{
|
|
"src": "/",
|
|
"headers": {
|
|
"cache-control": "public, s-maxage=604800, stale-while-revalidate: 86400"
|
|
}
|
|
},
|
|
{
|
|
"src": "/docs/.*",
|
|
"headers": {
|
|
"cache-control": "public, s-maxage=604800, stale-while-revalidate: 86400"
|
|
}
|
|
}
|
|
],
|
|
"env": {
|
|
"GH_TOKENS": "@badgen-gh-tokens",
|
|
"SENTRY_URI": "@badgen-sentry-uri",
|
|
"TRACKING_GA": "@badgen-tracking-ga"
|
|
},
|
|
"github": {
|
|
"autoAlias": false
|
|
}
|
|
}
|
|
|