From e87d81f42b36ff992db8d09aa3f16269890b541a Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Thu, 3 Oct 2019 20:58:12 +0800 Subject: [PATCH] fix: properly call async function --- packages/saber/vue-renderer/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/saber/vue-renderer/lib/index.js b/packages/saber/vue-renderer/lib/index.js index d3f11ba0e..85ffcedf2 100644 --- a/packages/saber/vue-renderer/lib/index.js +++ b/packages/saber/vue-renderer/lib/index.js @@ -327,7 +327,7 @@ class VueRenderer { routes.map(async route => { log.info('Generating', path.relative(outDir, route.outputFilePath)) try { - const { context, html } = renderHTML(renderer, { + const { context, html } = await renderHTML(renderer, { url: route.permalink, isProd: true, hooks: this.api.hooks