1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Make next-server expose the same handler function as next

This commit is contained in:
Tim Neutkens 2018-10-02 19:08:30 +02:00
parent e3ef917077
commit d2cbabbae4
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,4 @@
const Server = require('./dist/server/next-server').default
module.exports = function (opts) {
return new Server(opts)
}

View file

@ -1,7 +1,7 @@
{ {
"name": "next-server", "name": "next-server",
"version": "7.0.2-canary.5", "version": "7.0.2-canary.5",
"main": "./dist/server/next-server.js", "main": "./index.js",
"files": [ "files": [
"dist", "dist",
"asset.js", "asset.js",