fix(seo): add sitemap-blog.xml route handler + include in sitemap index (BUY-57939) - #234
Open
BuyWhere wants to merge 1 commit into
Open
fix(seo): add sitemap-blog.xml route handler + include in sitemap index (BUY-57939)#234BuyWhere wants to merge 1 commit into
BuyWhere wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix for BUY-57939
Problem:
/sitemap-blog.xmlreturns 404 — no route handler exists for a dedicated blog sitemap. The sitemap index at/sitemap.xmlalso doesn't reference it.Changes:
src/app/sitemap-blog.xml/route.ts(NEW) — Blog sitemap route handler usinggetAllBlogPosts(), emits all 22 blog posts with proper lastmod, changefreq, and prioritysrc/app/sitemap.xml/route.ts— Addedsitemap-blog.xmlto the sitemap indexVerification (pre-fix live check):
/sitemap.xml/sitemap-pages.xml/sitemap-blog.xml/sitemap-products.xml/sitemap-products-sg.xml/robots.txt/sitemap-categories.xml/sitemap-compare.xmlDeploy: Requires Railway deployment after merge.