From b66ab0602e58a8b69cde75f110a4ece9c4768e6d Mon Sep 17 00:00:00 2001 From: mifi Date: Sat, 7 Feb 2026 00:40:39 -0300 Subject: [PATCH] Resolve issues --- nginx.conf | 2 +- scripts/critical-css.mjs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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/...)