diff --git a/frontend/scripts/prerender-seo.mjs b/frontend/scripts/prerender-seo.mjs index 1490b787..9ca726c9 100644 --- a/frontend/scripts/prerender-seo.mjs +++ b/frontend/scripts/prerender-seo.mjs @@ -39,6 +39,30 @@ const DOMAIN = 'https://velxio.dev'; // entry), or Google sees a canonical that points to a redirecting URL. const withSlash = (u) => (u.endsWith('/') ? u : `${u}/`); +/** + * Swap the whole static #root-seo block (the hand-written homepage fallback + * in index.html) for this page's SSR body. Located by string search, not by + * a regex anchored on a following