chore(readme): add nuxt.ready() for middleware (#5363)

This commit is contained in:
Pooya Parsa 2019-03-24 15:54:50 +04:30 committed by GitHub
commit 83bc55d1b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,7 @@ let config = require('./nuxt.config.js')
config.dev = (process.env.NODE_ENV !== 'production')
let nuxt = new Nuxt(config)
nuxt.ready().catch(console.error)
// Start build process (only in development)
if (config.dev) {