Skip to content

refactor: use getSiteUrl helper for URL construction - #22

Merged
royalpinto007 merged 2 commits into
AgentPostmortem:mainfrom
slegarraga:refactor/use-site-url-helper
Aug 6, 2026
Merged

refactor: use getSiteUrl helper for URL construction#22
royalpinto007 merged 2 commits into
AgentPostmortem:mainfrom
slegarraga:refactor/use-site-url-helper

Conversation

@slegarraga

Copy link
Copy Markdown
Contributor

Replaces the weaker inline site URL fallback with getSiteUrl() across sitemap, robots, RSS feed, and public metadata.

  • Respects NEXT_PUBLIC_SITE_URL, NEXT_PUBLIC_APP_URL, and trailing-slash normalization.
  • Keeps display text and mailto addresses untouched.

Verified with ESLint, TypeScript, Prettier, and the test suite.

Closes #17

@royalpinto007
royalpinto007 merged commit 26b42e9 into AgentPostmortem:main Aug 6, 2026
3 checks passed
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

Nice work @slegarraga, this is merged.

Good, focused change. Exactly the kind of thing agent-postmortem needs.

If agent-postmortem is useful to you, a star goes a long way.

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.

Use getSiteUrl() instead of re-implementing the site URL fallback in sitemap, robots, and feed

2 participants