Add More Features to pages main component

This commit is contained in:
2026-03-17 18:53:27 +01:00
parent 9e94e20198
commit ee1fb5897e
5 changed files with 52 additions and 153 deletions
@@ -10,9 +10,10 @@ export default async function genWebHTML({
component,
pageProps,
bundledMap,
head,
head: Head,
module,
meta,
routeParams,
}: LivePageDistGenParams) {
const { ClientRootElementIDName, ClientWindowPagePropsName } =
await grabContants();
@@ -22,7 +23,9 @@ export default async function genWebHTML({
);
const componentHTML = renderToString(component);
const headHTML = head ? renderToString(head) : "";
const headHTML = Head
? renderToString(<Head serverRes={pageProps} ctx={routeParams} />)
: "";
let html = `<!DOCTYPE html>\n`;
html += `<html>\n`;