Skip to content

fix(sitemap): drop 410'd benches, HL builder /products redirects, empty categories (#980) - #982

Merged
Flotapponnier merged 1 commit into
mainfrom
cherry/sitemap-smoke-main
Jul 8, 2026
Merged

fix(sitemap): drop 410'd benches, HL builder /products redirects, empty categories (#980)#982
Flotapponnier merged 1 commit into
mainfrom
cherry/sitemap-smoke-main

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Cherry-pick of #980. Unblocks prod deploy.

… empty categories (#980)

Prod deploy sitemap-smoke rolled back on 4 URLs that the sitemap
advertises but which return non-200:

  https://openchainbench.com/benchmarks/bridge-revenue → 410
  https://openchainbench.com/benchmarks/evm-quote-latency → 410
  https://openchainbench.com/products/phantom-perps → 307
  https://openchainbench.com/benchmarks/category/wallets → 404

Root cause for each:

  1. bridge-revenue + evm-quote-latency: middleware returns 410 on
     prod (REMOVED_BENCH_SLUGS) but their YAML still says status:live,
     so the sitemap generator still emits them.
  2. phantom-perps: it's a tracked HL builder, /products/<slug>
     redirects to /hyperliquid/<slug>. The sitemap listed the redirect
     source instead of the canonical target.
  3. wallets category: no bench currently declares category:'Wallets'
     but the CATEGORIES enum still ships the slug; the page component
     404s.

Fixes (all in src/app/sitemap.ts):

  - Import REMOVED_BENCH_SLUGS (exported from middleware.ts) and skip
    them in benchmarkRoutes.flatMap.
  - Import isHlBuilderSlug and filter validatedSlugs on it in addition
    to the existing chain-slug filter.
  - Re-add the liveCategoryLabels filter on categoryRoutes so an
    empty CATEGORY entry doesn't produce a URL.

Middleware unchanged except REMOVED_BENCH_SLUGS is now exported.

Co-authored-by: Florent Tapponnier <contact@mobula.io>
@Flotapponnier
Flotapponnier merged commit 031b38d into main Jul 8, 2026
1 check passed
@Flotapponnier
Flotapponnier deleted the cherry/sitemap-smoke-main branch July 17, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant