Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/lib/removed-benches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ export const REMOVED_BENCH_SLUGS = new Set([
// changed without notice. Specs deleted.
"pm-fee-comparison",
"pm-geographic-access",
// polymarket-resolution-delay was drafted in a worktree but never merged
// to main. Answer pages originally referenced it; those were updated to
// pm-resolution-delay (2026-08-04). A 308 redirect covers inbound links.
// Adding here prevents stale Redis data from re-appearing in the sitemap.
"polymarket-resolution-delay",
]);

/**
Expand All @@ -147,5 +152,10 @@ export const REMOVED_PRODUCT_SLUGS = new Set([
// dropped 2026-07-24. Product page was live briefly, so Google
// likely indexed the URL. 410 speeds de-indexing.
"bitquery",
// goldrush (Covalent) was removed from indexing-freshness bench in
// 2026-08-04 data-api report (PR #1758). Stale Redis data can keep
// the provider in getProviders() output while the page 404s; 410 guard
// + sitemap exclusion stop the smoke-gate rollback until Redis flushes.
"goldrush",
]);

5 changes: 5 additions & 0 deletions src/lib/sitemap-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { getAllReports, getAllReportCategories } from "@/lib/reports/loader";
import { COMPARE_PAIRS } from "@/data/compare-pairs";
import { adHocPairs } from "@/lib/compare/adhoc-pairs";
import { REMOVED_BENCH_SLUGS } from "@/middleware";
import { REMOVED_PRODUCT_SLUGS } from "@/lib/removed-benches";
import {
isHlBuilderSlug,
isHlBuilderWithHistory,
Expand Down Expand Up @@ -313,6 +314,10 @@ async function buildFullSitemap(): Promise<MetadataRoute.Sitemap> {
if (await isHlBuilderSlug(slug)) return null;
// Perp venue slugs (except polymarket) 308 to /perp/<slug>.
if (PERP_PRODUCT_PILL_SLUGS.has(slug) && slug !== "polymarket") return null;
// Providers removed from all benches: stale Redis data can keep them
// in getProviders() while the page 410s. Explicit exclusion here
// prevents the smoke-gate rollback until the cache flushes.
if (REMOVED_PRODUCT_SLUGS.has(slug)) return null;
const p = await getProvider(slug);
return p ? slug : null;
}),
Expand Down
Loading