W5.1 hotfix: page PNGs are named p-NNN.png not pNNN.png
Some checks failed
CI / Web — typecheck + lint + build (push) Failing after 42s
CI / Scripts — Python smoke (push) Failing after 5s
CI / Web — npm audit (push) Failing after 34s
CI / Retrieval — golden set (Recall@5 + MRR) (push) Failing after 5s

This commit is contained in:
Luiz Gustavo 2026-05-24 14:14:53 -03:00
parent c40d1b58a0
commit b6fc9dc84e
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ export async function FeaturedCase({ locale }: { locale: "pt-br" | "en" }) {
if (!c) return null; if (!c) return null;
const title = locale === "pt-br" ? (c.topic_pt_br ?? c.topic) : c.topic; const title = locale === "pt-br" ? (c.topic_pt_br ?? c.topic) : c.topic;
const heroImg = c.hero_doc_id && c.hero_page 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; : null;
return ( return (

View file

@ -26,7 +26,7 @@ export function HeroBanner({ locale, stats, heroDocId, heroPage }: {
heroPage?: number; heroPage?: number;
}) { }) {
const heroImg = heroDocId && heroPage 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; : null;
return ( return (