1.0.0-alpha1 Nuxt with Koa
[issue link]According to the Nuxt.js codes of 1.0.0-alpha1, initialization of nuxt has been changed into asynchronous.
So how can we use koa in server side codes, should I wrap all koa app.use inside nuxt.then ?
const nuxt = new Nuxt(config)
nuxt.then((nuxt) => {
nuxt.build()
app.use(async (ctx, next) => {
// ...
await next()
// ...
})
app.use(async (ctx, next) => {
// ...
await next()
// ...
})
})