mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Rename index.js to next-server.js (#5323)
This commit is contained in:
parent
2c6206d66c
commit
70c4b3d11c
|
@ -1,4 +1,4 @@
|
|||
import Server from './index'
|
||||
import Server from './next-server'
|
||||
import { join } from 'path'
|
||||
import HotReloader from './hot-reloader'
|
||||
import {PHASE_DEVELOPMENT_SERVER} from '../lib/constants'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// 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
|
||||
const Server = opts.dev ? require('./next-dev-server').default : require('./next-server').default
|
||||
return new Server(opts)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue