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
context.redirected = false
context.next = function (opts) {
// if nuxt generate
if (!context.res) {
context.redirected = opts
context.nuxt.serverRendered = false