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

11 lines
266 B
JavaScript
Raw Normal View History

// 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)
}