diff --git a/lib/app/server.js b/lib/app/server.js index 9c04c56fdb..461991b2e6 100644 --- a/lib/app/server.js +++ b/lib/app/server.js @@ -25,6 +25,7 @@ export default context => { // create context.next for simulate next() of beforeEach() when wanted to redirect context.redirected = false context.next = function (opts) { + // if nuxt generate if (!context.res) { context.redirected = opts context.nuxt.serverRendered = false