fix: Give back payload for generate

This commit is contained in:
Sébastien Chopin 2017-10-28 18:10:36 +02:00
parent 23e1c3fd06
commit 023f000e24

View File

@ -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