Skip to content

Commit

Permalink
fix: don't send superfluous JavaScript Early Hint for HTML-only page (f…
Browse files Browse the repository at this point in the history
…ix #1574)
  • Loading branch information
brillout committed Mar 28, 2024
1 parent 9ab6a14 commit 14e4b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vike/node/runtime/renderPage/analyzePage.ts
Expand Up @@ -18,7 +18,7 @@ function analyzePage(pageFilesAll: PageFile[], pageConfig: null | PageConfigRunt
const clientDependencies: ClientDependency[] = []
clientDependencies.push({
id: getVirtualFileIdPageConfigValuesAll(pageConfig.pageId, true),
onlyAssets: false,
onlyAssets: isClientSideRenderable ? false : true,
eagerlyImported: false
})
// In production we inject the import of the server virtual module with ?extractAssets inside the client virtual module
Expand Down

0 comments on commit 14e4b5e

Please sign in to comment.