mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-29 23:02:42 +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(() => {
|
||||
nuxt.renderer = null
|
||||
debug('Rebuilding the app...')
|
||||
return new Nuxt(options).build()
|
||||
return (new Nuxt(options)).then(nuxt => nuxt.build())
|
||||
})
|
||||
.then((nuxt) => {
|
||||
server.nuxt = nuxt
|
||||
|
Loading…
Reference in New Issue
Block a user