From b6fc9dc84ef4b4d6a621c6d3342d11bce7f9dba6 Mon Sep 17 00:00:00 2001 From: Luiz Gustavo Date: Sun, 24 May 2026 14:14:53 -0300 Subject: [PATCH] W5.1 hotfix: page PNGs are named p-NNN.png not pNNN.png --- web/components/featured-case.tsx | 2 +- web/components/hero-banner.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/featured-case.tsx b/web/components/featured-case.tsx index 4a7fb47..808781e 100644 --- a/web/components/featured-case.tsx +++ b/web/components/featured-case.tsx @@ -85,7 +85,7 @@ export async function FeaturedCase({ locale }: { locale: "pt-br" | "en" }) { if (!c) return null; const title = locale === "pt-br" ? (c.topic_pt_br ?? c.topic) : c.topic; const heroImg = c.hero_doc_id && c.hero_page - ? `/api/static/processing/png/${c.hero_doc_id}/p${String(c.hero_page).padStart(3, "0")}.png` + ? `/api/static/processing/png/${c.hero_doc_id}/p-${String(c.hero_page).padStart(3, "0")}.png` : null; return ( diff --git a/web/components/hero-banner.tsx b/web/components/hero-banner.tsx index 28dbb03..d582532 100644 --- a/web/components/hero-banner.tsx +++ b/web/components/hero-banner.tsx @@ -26,7 +26,7 @@ export function HeroBanner({ locale, stats, heroDocId, heroPage }: { heroPage?: number; }) { const heroImg = heroDocId && heroPage - ? `/api/static/processing/png/${heroDocId}/p${String(heroPage).padStart(3, "0")}.png` + ? `/api/static/processing/png/${heroDocId}/p-${String(heroPage).padStart(3, "0")}.png` : null; return (