mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
app rebuild await for nuxt initialization
This commit is contained in:
parent
a6f1ce7465
commit
975e468388
@ -69,7 +69,7 @@ function listenOnConfigChanges (nuxt, server) {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
nuxt.renderer = null
|
nuxt.renderer = null
|
||||||
debug('Rebuilding the app...')
|
debug('Rebuilding the app...')
|
||||||
return new Nuxt(options).build()
|
return (new Nuxt(options)).then(nuxt => nuxt.build())
|
||||||
})
|
})
|
||||||
.then((nuxt) => {
|
.then((nuxt) => {
|
||||||
server.nuxt = nuxt
|
server.nuxt = nuxt
|
||||||
|
Loading…
Reference in New Issue
Block a user