Skip to content

Commit

Permalink
fix: don't unnecessarily pass useConfig() values to client-side
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Aug 8, 2024
1 parent cce416f commit dca7b9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vike-solid/renderer/onRenderHtml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ function getHeadHtml(pageContext: PageContextServer & PageContextInternal) {
.join("\n"),
);

// Not needed on the client-side, thus we remove it to save KBs sent to the client
delete pageContext._configFromHook

const headHtml = escapeInject`
${titleTags}
${viewportTag}
Expand Down

0 comments on commit dca7b9c

Please sign in to comment.