diff --git a/lib/app/utils.js b/lib/app/utils.js index ddaebb244f..9b88a3a79f 100644 --- a/lib/app/utils.js +++ b/lib/app/utils.js @@ -61,7 +61,7 @@ export function getContext (context, app) { app: app, <%= (store ? 'store: context.store,' : '') %> route: (context.to ? context.to : context.route), - generatePayload : context.generatePayload, + payload : context.payload, error: context.error, base: '<%= router.base %>', env: <%= JSON.stringify(env) %> diff --git a/lib/generate.js b/lib/generate.js index aab432a869..811c0aea29 100644 --- a/lib/generate.js +++ b/lib/generate.js @@ -103,7 +103,7 @@ export default async function () { await waitFor(n++ * this.options.generate.interval) let html try { - const res = await this.renderRoute(route, { _generate: true, generatePayload: payload }) + const res = await this.renderRoute(route, { _generate: true, payload }) html = res.html if (res.error) { errors.push({ type: 'handled', route, error: res.error })