Add index page to deployment

pull/282/head
Amio 2019-05-26 12:41:21 +08:00
rodzic e623699e6a
commit cd265d3c53
3 zmienionych plików z 6 dodań i 2 usunięć

3
next.config.js 100644
Wyświetl plik

@ -0,0 +1,3 @@
module.exports = {
target: 'serverless'
}

Wyświetl plik

@ -4,7 +4,8 @@
"v2.badgen.net"
],
"builds": [
{ "src": "endpoints/*.ts", "use": "@now/node" }
{ "src": "endpoints/*.ts", "use": "@now/node" },
{ "src": "next.config.js", "use": "@now/next" }
],
"routes": [
{ "src": "/(?<name>\\w+)/.*", "dest": "/endpoints/$name.ts" }

Wyświetl plik

@ -9,7 +9,7 @@
"lint": "standard",
"dev": "micro-dev service.js -s -i .next",
"dev:web": "next",
"now-build": "tsc",
"build": "tsc",
"pretest": "npm run lint",
"test": "tap test/*.js --reporter spec -j12",
"start": "node service.js",