[PR #7226] [MERGED] docs: automate sitemap generation #24059

Closed
opened 2026-04-15 22:09:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7226
Author: @bytaesu
Created: 1/9/2026
Status: Merged
Merged: 1/10/2026
Merged by: @himself65

Base: canaryHead: 2026-01-10/docs/sitemap


📝 Commits (1)

  • 1fddc6a docs: automate sitemap generation

📊 Changes

2 files changed (+73 additions, -567 deletions)

View changed files

docs/app/sitemap.ts (+73 -0)
docs/app/sitemap.xml (+0 -567)

📄 Description


Summary by cubic

Automated sitemap generation for the docs site using Next.js metadata route, replacing the static sitemap.xml to keep entries in sync with docs and blog content.

  • New Features

    • Added docs/app/sitemap.ts to build the sitemap from source pages and blogs.
    • Included base routes and normalized blog URLs (/blogs → /blog).
    • Uses content dates for lastModified; sets changeFrequency and priority.
  • Migration

    • Removed docs/app/sitemap.xml; Next.js now serves /sitemap.xml from the new route.
    • Confirm BASE_URL points to https://www.better-auth.com.

Written for commit 1fddc6a91f. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7226 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 1/9/2026 **Status:** ✅ Merged **Merged:** 1/10/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2026-01-10/docs/sitemap` --- ### 📝 Commits (1) - [`1fddc6a`](https://github.com/better-auth/better-auth/commit/1fddc6a91fafa735df41cdc55dea67683b3240bf) docs: automate sitemap generation ### 📊 Changes **2 files changed** (+73 additions, -567 deletions) <details> <summary>View changed files</summary> ➕ `docs/app/sitemap.ts` (+73 -0) ➖ `docs/app/sitemap.xml` (+0 -567) </details> ### 📄 Description - Reference: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Automated sitemap generation for the docs site using Next.js metadata route, replacing the static sitemap.xml to keep entries in sync with docs and blog content. - **New Features** - Added docs/app/sitemap.ts to build the sitemap from source pages and blogs. - Included base routes and normalized blog URLs (/blogs → /blog). - Uses content dates for lastModified; sets changeFrequency and priority. - **Migration** - Removed docs/app/sitemap.xml; Next.js now serves /sitemap.xml from the new route. - Confirm BASE_URL points to https://www.better-auth.com. <sup>Written for commit 1fddc6a91fafa735df41cdc55dea67683b3240bf. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:09:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#24059