Skip to content

Comments

Add caching and pagination guidelines for sitemaps#106

Open
flamingotiger wants to merge 1 commit intovercel-labs:mainfrom
flamingotiger:react-sitemap
Open

Add caching and pagination guidelines for sitemaps#106
flamingotiger wants to merge 1 commit intovercel-labs:mainfrom
flamingotiger:react-sitemap

Conversation

@flamingotiger
Copy link

Notes:

  • Google limits sitemaps to 50,000 URLs and 50MB per file, so PAGE_SIZE should stay well below this.
  • Ensure proper DB indexes (e.g., published, updatedAt) to avoid expensive sort operations.
  • Prefer Next.js built-in sitemap API when possible; route handlers are useful when custom caching logic is required.

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