fix: init nitro before module container (closes #165)

This commit is contained in:
Pooya Parsa 2021-02-18 11:47:23 +01:00
parent f5d96eb60c
commit 270bbbc47e

View File

@ -75,12 +75,12 @@ export default class Nuxt extends Hookable {
this.addHooks(this.options.hooks) this.addHooks(this.options.hooks)
} }
// Await for modules
await this.moduleContainer.ready()
// Await for server // Await for server
await initNitro(this) await initNitro(this)
// Await for modules
await this.moduleContainer.ready()
// Call ready hook // Call ready hook
await this.callHook('ready', this) await this.callHook('ready', this)