kopia lustrzana https://github.com/badgen/badgen.net
Add index page to deployment
rodzic
e623699e6a
commit
cd265d3c53
|
@ -0,0 +1,3 @@
|
||||||
|
module.exports = {
|
||||||
|
target: 'serverless'
|
||||||
|
}
|
3
now.json
3
now.json
|
@ -4,7 +4,8 @@
|
||||||
"v2.badgen.net"
|
"v2.badgen.net"
|
||||||
],
|
],
|
||||||
"builds": [
|
"builds": [
|
||||||
{ "src": "endpoints/*.ts", "use": "@now/node" }
|
{ "src": "endpoints/*.ts", "use": "@now/node" },
|
||||||
|
{ "src": "next.config.js", "use": "@now/next" }
|
||||||
],
|
],
|
||||||
"routes": [
|
"routes": [
|
||||||
{ "src": "/(?<name>\\w+)/.*", "dest": "/endpoints/$name.ts" }
|
{ "src": "/(?<name>\\w+)/.*", "dest": "/endpoints/$name.ts" }
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"lint": "standard",
|
"lint": "standard",
|
||||||
"dev": "micro-dev service.js -s -i .next",
|
"dev": "micro-dev service.js -s -i .next",
|
||||||
"dev:web": "next",
|
"dev:web": "next",
|
||||||
"now-build": "tsc",
|
"build": "tsc",
|
||||||
"pretest": "npm run lint",
|
"pretest": "npm run lint",
|
||||||
"test": "tap test/*.js --reporter spec -j12",
|
"test": "tap test/*.js --reporter spec -j12",
|
||||||
"start": "node service.js",
|
"start": "node service.js",
|
||||||
|
|
Ładowanie…
Reference in New Issue