Skip to content

Commit

Permalink
fix: improve assertion (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Sep 5, 2024
1 parent 2622706 commit 0acb855
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vike/node/runtime/renderPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ async function renderPageNominal(
}
}
assert(hasProp(pageContext, '_pageId', 'string'))
assert(pageContext.errorWhileRendering === null)

// Render
const pageContextAfterRender = await renderPageAlreadyRouted(pageContext)
Expand Down

0 comments on commit 0acb855

Please sign in to comment.