mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fix renderPage in production mode (#3089)
The next object was not being exported in the same manner in dev vs. prod mode.
This commit is contained in:
parent
11fe73e9ba
commit
8711a7d14e
|
@ -1,10 +1,11 @@
|
|||
import 'react-hot-loader/patch'
|
||||
import initNext, * as next from './'
|
||||
import initOnDemandEntries from './on-demand-entries-client'
|
||||
import initWebpackHMR from './webpack-hot-middleware-client'
|
||||
|
||||
const next = window.next = require('./')
|
||||
window.next = next
|
||||
|
||||
next.default()
|
||||
initNext()
|
||||
.then((emitter) => {
|
||||
initOnDemandEntries()
|
||||
initWebpackHMR()
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import next from './'
|
||||
import initNext, * as next from './'
|
||||
|
||||
next()
|
||||
window.next = next
|
||||
|
||||
initNext()
|
||||
.catch((err) => {
|
||||
console.error(`${err.message}\n${err.stack}`)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue