Skip to content

Commit

Permalink
fix async
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Jul 1, 2021
1 parent 6b03f17 commit 8faee2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/gatsby/src/utils/worker/child/render-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,10 @@ export const renderHTMLProd = async ({
const pageData = await readPageData(publicDir, pagePath)
const resourcesForTemplate = await getResourcesForTemplate(pageData)

const { html, unsafeBuiltinsUsage } = htmlComponentRenderer.default({
const {
html,
unsafeBuiltinsUsage,
} = await htmlComponentRenderer.default({
pagePath,
pageData,
...resourcesForTemplate,
Expand Down Expand Up @@ -387,7 +390,7 @@ export const renderHTMLDev = async ({
paths,
async pagePath => {
try {
const htmlString = htmlComponentRenderer.default({
const htmlString = await htmlComponentRenderer.default({
pagePath,
})
return fs.outputFile(
Expand Down

0 comments on commit 8faee2f

Please sign in to comment.