diff --git a/nginx.conf b/nginx.conf index d63bc1d..0a3927e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,4 +1,4 @@ - Minimal nginx configuration for static site delivery +# Minimal nginx configuration for static site delivery # Security headers are handled upstream by Traefik user nginx; diff --git a/scripts/critical-css.mjs b/scripts/critical-css.mjs index 9cf2ef2..1a57388 100644 --- a/scripts/critical-css.mjs +++ b/scripts/critical-css.mjs @@ -31,7 +31,11 @@ try { base: buildDir, html, inline: { strategy: 'default' }, // preload in head + link at end of body (no inline JS, CSP-safe) - dimensions: [{ width: 1280, height: 720 }], + dimensions: [ + { width: 375, height: 667 }, // mobile (iPhone SE) + { width: 768, height: 1024 }, // tablet + { width: 1280, height: 720 }, // desktop + ], penthouse: { timeout: 30000 }, }); // Ensure _app asset paths stay absolute (critical may rewrite; host-based routing needs /_app/...)