Mat now we will have interactivity?
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2026-02-06 20:36:38 -03:00
parent d2995e4a08
commit a52938f6cf
2 changed files with 10 additions and 3 deletions

View File

@@ -34,7 +34,9 @@ try {
dimensions: [{ width: 1280, height: 720 }],
penthouse: { timeout: 30000 },
});
writeFileSync(htmlPath, outHtml, 'utf-8');
// Ensure _app asset paths stay absolute (critical may rewrite; host-based routing needs /_app/...)
const normalized = outHtml.replace(/\.\/_app\//g, '/_app/');
writeFileSync(htmlPath, normalized, 'utf-8');
console.log(`Critical CSS inlined in ${htmlPath}`);
} catch (err) {
const msg = err instanceof Error ? err.message : String(err);