next.js
4ea20efa - test: add test case for sitemap index issue with generateSitemaps (#77304)

Commit
85 days ago
test: add test case for sitemap index issue with generateSitemaps (#77304) This test documents the issue where accessing /sitemap.xml returns 404 when using generateSitemaps() in the root app/sitemap.ts file. The expected behavior is that /sitemap.xml should return a sitemap index (sitemapindex) that links to all child sitemaps generated by generateSitemaps(). Currently, only the individual sitemaps (e.g. /sitemap/pages.xml) are accessible. The test verifies: - Individual sitemaps at /sitemap/[id].xml work correctly - /sitemap.xml returns 404 (documenting the current buggy behavior) - Non-existing sitemap IDs return 404 - Sitemaps without .xml extension return 404
Author
Parents
Loading