Skip to content

feat(seo): custom page sitemap via fetchCustomPages#380

Merged
paul-phan merged 2 commits into
mainfrom
feat/sitemap-custom-pages
Apr 22, 2026
Merged

feat(seo): custom page sitemap via fetchCustomPages#380
paul-phan merged 2 commits into
mainfrom
feat/sitemap-custom-pages

Conversation

@paul-phan
Copy link
Copy Markdown
Member

Summary

  • Rewrite sitemap-weaverse.xml.ts to use weaverse.fetchCustomPages() SDK method instead of directly calling the auth-gated content API
  • Add XML escaping for all dynamic values
  • Add <lastmod> from publishedAt timestamp
  • Register route in routes.ts and inject into sitemap index in sitemap.ts

Depends on

Test plan

  • Verify /sitemap-weaverse.xml returns valid XML with custom pages
  • Verify /sitemap.xml includes the weaverse sitemap reference
  • Verify <lastmod> dates are present and correctly formatted
  • Verify XML escaping works for special characters in handles

Rewrites sitemap-weaverse.xml.ts to use the new SDK method instead
of calling the auth-gated content API directly. Adds XML escaping,
<lastmod> from publishedAt, and proper priority/changeFrequency.
Registers route and injects into sitemap index.
@paul-phan paul-phan merged commit 3915ce8 into main Apr 22, 2026
2 checks passed
@paul-phan paul-phan deleted the feat/sitemap-custom-pages branch April 22, 2026 10:54
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