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.
2 parents c4aa527 + ec32a9f commit 4900029Copy full SHA for 4900029
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)
nuxt-middleware/package.json
@@ -15,7 +15,7 @@
15
"license": "MIT",
16
"dependencies": {
17
"axios": "0.16.2",
18
- "nuxt": "1.0.0-alpha.4",
+ "nuxt": "next",
19
"total.js": "^2.6.3-3"
20
}
21
0 commit comments