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:
parent
e3ef917077
commit
d2cbabbae4
4
packages/next-server/index.js
Normal file
4
packages/next-server/index.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
const Server = require('./dist/server/next-server').default
|
||||
module.exports = function (opts) {
|
||||
return new Server(opts)
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "next-server",
|
||||
"version": "7.0.2-canary.5",
|
||||
"main": "./dist/server/next-server.js",
|
||||
"main": "./index.js",
|
||||
"files": [
|
||||
"dist",
|
||||
"asset.js",
|
||||
|
|
Loading…
Reference in a new issue