diff --git a/packages/saber/vue-renderer/lib/render-html.js b/packages/saber/vue-renderer/lib/render-html.js index 7d1f20fee..a021bafca 100644 --- a/packages/saber/vue-renderer/lib/render-html.js +++ b/packages/saber/vue-renderer/lib/render-html.js @@ -3,7 +3,7 @@ const getInitialDocument = require('./get-initial-document') module.exports = async (renderer, { url, hooks, isProd }) => { const context = { url } - const markup = await renderer.renderToString(context) + context.markup = await renderer.renderToString(context) // Get document data that is used to document string const documentData = hooks.getDocumentData.call( @@ -25,7 +25,7 @@ module.exports = async (renderer, { url, hooks, isProd }) => { return { html: `${document}`.replace( '
', - markup + context.markup ), context }