@astrojs/sitemap
3.7.6 · 18 Nov 2026MIT6.2M / weekRepositoryHomepagenpmAtom feed
3.7.6 is the newest release of 3.x.
In short
1 new
Release note
Minor Changes
Adds a new configuration option
prefixthat allows you to change the defaultsitemap-*.xmlfile name.By default, running
astro buildcreates bothsitemap-index.xmlandsitemap-0.xmlin your output directory.To change the names of these files (e.g. to
astrosite-index.xmlandastrosite-0.xml), set theprefixoption in yoursitemapintegration configuration:import { defineConfig } from 'astro/config'; import sitemap from '@astrojs/sitemap'; export default defineConfig({ site: 'https://example.com', integrations: [ sitemap({ prefix: 'astrosite-', }), ], });This option is useful when Google Search Console is unable to fetch your default sitemap files, but can read renamed files.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.