github withastro/astro @astrojs/sitemap@3.1.0

latest releases: astro@4.11.5, astro@4.11.4, astro@4.11.3...
4 months ago

Minor Changes

  • #9846 9b78c992750cdb99c40a89a00ea2a0d1c00877d7 Thanks @ktym4a! - Adds a new configuration option prefix that allows you to change the default sitemap-*.xml file name.

    By default, running astro build creates both sitemap-index.xml and sitemap-0.xml in your output directory.

    To change the names of these files (e.g. to astrosite-index.xml and astrosite-0.xml), set the prefix option in your sitemap integration 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.

Don't miss a new astro release

NewReleases is sending notifications on new releases.