🍿 Minor Changes
-
#9846
9b78c992750cdb99c40a89a00ea2a0d1c00877d7Thanks @ktym4a! - Adds a new configuration optionprefixthat 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.