kopia lustrzana https://github.com/badgen/badgen.net
Add deploy config for Now v1
rodzic
1a8386fa0f
commit
3b8ee1084a
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"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
|
||||
}
|
||||
}
|
35
now.json
35
now.json
|
@ -1,33 +1,28 @@
|
|||
{
|
||||
"version": 2,
|
||||
"version": 1,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"files": [
|
||||
"package-lock.json",
|
||||
"next.config.js",
|
||||
"tsconfig.json",
|
||||
"index.ts",
|
||||
"tools",
|
||||
"libs",
|
||||
"pages",
|
||||
"static",
|
||||
"endpoints",
|
||||
"components"
|
||||
],
|
||||
"env": {
|
||||
"GH_TOKENS": "@badgen-gh-tokens",
|
||||
"SENTRY_URI": "@badgen-sentry-uri",
|
||||
"TRACKING_GA": "@badgen-tracking-ga"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^10"
|
||||
},
|
||||
"github": {
|
||||
"autoAlias": false
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue