🍿 Minor Changes
-
#13682
5824b32Thanks @gouravkhunger! - Adds acustomSitemapsoption to include extra sitemaps in thesitemap-index.xmlfile generated by Astro.This is useful for multi-framework setups on the same domain as your Astro site (
example.com), such as a blog atexample.com/blogwhose sitemap is generated by another framework.The following example shows configuring your Astro site to include sitemaps for an externally-generated blog and help center along with the generated sitemap entries in
sitemap-index.xml:Example:
import { defineConfig } from 'astro/config';import sitemap from '@astrojs/sitemap';export default defineConfig({site: 'https://example.com',integrations: [sitemap({customSitemaps: ['https://example.com/blog/sitemap.xml','https://example.com/helpcenter/sitemap.xml',],}),],});Learn more in the
@astrojs/sitemapconfiguration documentation.