mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
6 lines
215 B
JavaScript
6 lines
215 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('./next-server').default
|
|
return new Server(opts)
|
|
}
|