8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f71f2 commit ec32a9fCopy full SHA for ec32a9f
nuxt-middleware/definitions/nuxt-middleware.js
@@ -1,7 +1,5 @@
1
-const Nuxt = require('nuxt')
+const {Nuxt, Builder} = require('nuxt')
2
const options = require('../nuxt.config')
3
-const nuxt = new Nuxt(options)
4
-
5
-nuxt.build().then(function () {
6
- F.middleware('nuxt', nuxt.render)
7
-})
+const nuxt = new Nuxt(options), builder = new Builder(nuxt)
+builder.build()
+F.middleware('nuxt', nuxt.render)
0 commit comments