npm / @astrojs/sitemap
@astrojs/sitemap
What changed in @astrojs/sitemap 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.
1 new APIs and options2 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@astrojs/sitemap 35 changes
New APIs and options 1
Adds customizable sitemap chunking, writing categorized sitemap items to separate files for better management of large sitemaps and improved performance.
Behavior and default changes 2
Sitemap index entries now use the most recent lastmod from each child sitemap, falling back to the lastmod option when needed.
Updated to Astro 6 beta compatibility.
Fixes and other changes 2
Fixes the homepage URL to avoid an empty path when trailingSlash is never or build.format is file.
Fixes i18n fallback pages missing from the generated sitemap when using fallbackType: 'rewrite'.