fix(seo): add missing routes to sitemap - #69
Merged
royalpinto007 merged 1 commit intoAug 7, 2026
Conversation
Stats, tools, contact, privacy and terms were never added to the sitemap when it was written; none are disallowed in robots.ts. Skip /search since it renders an empty results page without a query. Also collapse the near-identical static entries into a small array now that there are twelve of them.
|
And it's in. Thanks @waterlemonnn. Genuinely helpful change for agentpostmortem. If this project helps you out, a star helps others find it too. Happy to see more from you whenever you have the time. |
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.
Closes #58
app/sitemap.tsonly listed seven static routes by hand and was missing six real, indexable pages:/stats,/tools,/contact,/privacy,/terms, and/search. None of them are disallowed inapp/robots.ts.Judgement calls (as requested in the issue):
/searchis left out of the sitemap. Without a query it renders an empty results page, so there's nothing useful to index and no canonical URL worth crawling for it.map. With five more entries the seven near-identical object literals would have gotten harder to scan, so I pulled{ path, changeFrequency, priority }into an array the way the issue suggested. Kept thepostUrls/AGENTS/TAGSsections as-is since those already read fine.Values chosen by analogy with existing entries:
/statsweekly/0.6,/toolsmonthly/0.5,/contact//privacy//termsyearly/0.3.Verified by running
npm run devand fetchinghttp://localhost:3000/sitemap.xml— all six new routes appear,/searchdoes not. Also rannpx prettier --check .,npm run lint, andnpx tsc --noEmit, all clean.npm run buildhits two pre-existing failures unrelated to this change in this environment (RESEND_API_KEYmissing, and a@vercel/ogicon-route prerender error), confirmed identical onmainbefore this change.