From 023f000e247bc95da73f38bc34e0729db91538a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sat, 28 Oct 2017 18:10:36 +0200 Subject: [PATCH] fix: Give back payload for generate --- lib/app/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/app/index.js b/lib/app/index.js index b40dec9436..dec76840ad 100644 --- a/lib/app/index.js +++ b/lib/app/index.js @@ -111,6 +111,7 @@ async function createApp (ssrContext) { next, error: app.nuxt.error.bind(app), <% if (store) { %>store,<% } %> + payload: ssrContext ? ssrContext.payload : undefined, req: ssrContext ? ssrContext.req : undefined, res: ssrContext ? ssrContext.res : undefined, beforeRenderFns: ssrContext ? ssrContext.beforeRenderFns : undefined