1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/server/next.js
Tim Neutkens 3f47a87c79
Initial dev server (#5317)
* Initial dev server

* Remove obsolete check

* Move hotReloader to dev-server

* Use parent renderErrorToHTML to remove dep on render.js

* Remove dev option from server itself
2018-09-28 14:05:23 +02:00

6 lines
209 B
JavaScript

// This file is used for when users run `require('next')`
module.exports = (opts) => {
const Server = opts.dev ? require('./next-dev-server').default : require('./index').default
return new Server(opts)
}