Add comment

This commit is contained in:
Sébastien Chopin 2017-02-07 10:46:05 +01:00
parent 61ac979cba
commit ae8700f117

View File

@ -25,6 +25,7 @@ export default context => {
// create context.next for simulate next() of beforeEach() when wanted to redirect // create context.next for simulate next() of beforeEach() when wanted to redirect
context.redirected = false context.redirected = false
context.next = function (opts) { context.next = function (opts) {
// if nuxt generate
if (!context.res) { if (!context.res) {
context.redirected = opts context.redirected = opts
context.nuxt.serverRendered = false context.nuxt.serverRendered = false