mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
11 lines
266 B
JavaScript
11 lines
266 B
JavaScript
// This file is used for when users run `require('next')`
|
|
module.exports = (options) => {
|
|
if (options.dev) {
|
|
const Server = require('./next-dev-server').default
|
|
return new Server(options)
|
|
}
|
|
|
|
const next = require('next-server')
|
|
return next(options)
|
|
}
|