Skip to content

fix(seo): add missing routes to sitemap - #69

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
waterlemonnn:fix/sitemap-missing-routes
Aug 7, 2026
Merged

fix(seo): add missing routes to sitemap#69
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
waterlemonnn:fix/sitemap-missing-routes

Conversation

@waterlemonnn

Copy link
Copy Markdown
Contributor

Closes #58

app/sitemap.ts only 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 in app/robots.ts.

Judgement calls (as requested in the issue):

  • /search is 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.
  • Collapsed the static entries into a small array + 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 the postUrls/AGENTS/TAGS sections as-is since those already read fine.

Values chosen by analogy with existing entries: /stats weekly/0.6, /tools monthly/0.5, /contact//privacy//terms yearly/0.3.

Verified by running npm run dev and fetching http://localhost:3000/sitemap.xml — all six new routes appear, /search does not. Also ran npx prettier --check ., npm run lint, and npx tsc --noEmit, all clean. npm run build hits two pre-existing failures unrelated to this change in this environment (RESEND_API_KEY missing, and a @vercel/og icon-route prerender error), confirmed identical on main before this change.

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.
@royalpinto007
royalpinto007 merged commit 8620d73 into AgentPostmortem:main Aug 7, 2026
11 checks passed
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

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.

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.

sitemap.xml is missing /stats, /search, /tools, /contact, /privacy and /terms

2 participants