From 77b53d5ae05ff0d7765e8bc032c42659ad6d06a6 Mon Sep 17 00:00:00 2001 From: Florent Tapponnier <160007691+Flotapponnier@users.noreply.github.com> Date: Thu, 13 Aug 2026 18:08:31 +0200 Subject: [PATCH] fix: sitemap omits chain URLs on error to prevent smoke-gate 404s --- src/lib/sitemap-builder.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/lib/sitemap-builder.ts b/src/lib/sitemap-builder.ts index b85fb33c..5fb993ad 100644 --- a/src/lib/sitemap-builder.ts +++ b/src/lib/sitemap-builder.ts @@ -412,12 +412,11 @@ async function buildFullSitemap(): Promise { priority: 0.85, }; } catch { - return { - url: `${SITE.url}/chains/${c.slug}`, - lastModified: catalogTs, - changeFrequency: "daily" as const, - priority: 0.85, - }; + // Fail-safe: if we can't verify this chain has benches, omit it. + // Emitting unverified URLs causes smoke-test 404s that block every + // prod deploy. Chains with real bench data re-enter the sitemap on + // the next successful build. + return null; } }), )