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
2018-10-02 23:11:01 +02:00

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