Skip to content

fix(BUY-66226): drop deprecated sitemap-products-sg.xml from sitemap index + robots - #338

Open
BuyWhere wants to merge 1 commit into
mainfrom
fix/BUY-66226-remove-deprecated-sg-sitemap-ref
Open

fix(BUY-66226): drop deprecated sitemap-products-sg.xml from sitemap index + robots#338
BuyWhere wants to merge 1 commit into
mainfrom
fix/BUY-66226-remove-deprecated-sg-sitemap-ref

Conversation

@BuyWhere

@BuyWhere BuyWhere commented Aug 4, 2026

Copy link
Copy Markdown
Owner

What

Removes the deprecated sitemap-products-sg.xml entry from the sitemap index (sitemap.xml) and from robots.txt.

Why

SG product slug pages return 410 Gone (BUY-37747/BUY-37750) and the /sitemap-products-sg.xml route itself returns 410. Despite that, both the sitemap index and robots.ts still unconditionally listed the SG sub-sitemap. The result was a permanent broken-sitemap reference in GSC coverage: the index kept pointing at a Gone sub-sitemap, so any GSC "delete" could never stick — the index re-published the reference on every regeneration.

The route's own comment says "This sitemap is deprecated — delete it from GSC to avoid coverage errors." But as long as the index lists it, GSC cannot clear it. This PR removes the listing so no crawler is directed at a Gone sitemap.

Scope

  • src/app/sitemap.xml/route.ts — drop the SG entry from the index.
  • src/app/robots.ts — drop the SG entry from the sitemap: array.

No other behavior changes. No other code or test references the SG sitemap entry.

Context

  • BUY-66226 — sitemap deploy triage. The core BUY-66176 regression (100 SG URLs in sitemap-products.xml) is already fixed in production (verified: sitemap-products.xml now returns exactly 100 US URLs / 0 SG URLs, regenerated 2026-08-04T22:42Z). This PR clears the residual broken-index reference discovered while re-verifying.
  • Deploy-independent code change; ships on next deploy-www/merge once the Railway deploy token (BUY-60107) is available.

Verification

  • git diff origin/main — exactly two files, +7/-2.
  • Files typecheck cleanly (pre-existing Jest infra errors elsewhere are unrelated).
  • No test references the removed entry.

🤖 Generated with Claude Code

…index + robots

SG product slug pages return 410 Gone (BUY-37747/BUY-37750) and the
/sitemap-products-sg.xml route itself emits 410, but the sitemap index
(sitemap.xml) and robots.txt still unconditionally listed it. That kept a
permanent broken-sitemap reference alive in GSC coverage (an index pointing
at a Gone sub-sitemap) — the route comment said "delete it from GSC" yet the
index kept re-publishing the reference.

Remove the SG entry from both the index route and robots.ts so no crawler is
directed at a Gone sitemap.

Part of BUY-66226 (sitemap deploy triage). The core BUY-66176 regression
(100 SG URLs in sitemap-products.xml) is already fixed in prod; this clears
the residual broken-index reference.

Co-Authored-By: Claude <noreply@anthropic.com>
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