diff options
author | 2025-05-12 03:32:21 -0700 | |
---|---|---|
committer | 2025-05-12 11:32:21 +0100 | |
commit | 2ba4692792954ea612161e3bd8aa4515e2169b57 (patch) | |
tree | a9072a0f5aa1320bb148155e18155aed6bb2955a /.changeset/neat-tigers-float.md | |
parent | 1609044face6f58fff1dc82ceb14b3fd13b5ff67 (diff) | |
download | astro-@astrojs/sitemap@3.4.0.tar.gz astro-@astrojs/sitemap@3.4.0.tar.zst astro-@astrojs/sitemap@3.4.0.zip |
[ci] release (#13771)@astrojs/sitemap@3.4.0@astrojs/db@0.14.14
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to '.changeset/neat-tigers-float.md')
-rw-r--r-- | .changeset/neat-tigers-float.md | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/.changeset/neat-tigers-float.md b/.changeset/neat-tigers-float.md deleted file mode 100644 index 10326f6fe..000000000 --- a/.changeset/neat-tigers-float.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@astrojs/sitemap': minor ---- - -Customize the filenames of sitemap XML files generated by the `@astro/sitemap` integration by setting `filenameBase` in the integration configuration settings. This may be useful when deploying an Astro site at a path on a domain with preexisting sitemap files. - -Generated sitemap files will appear at `/sitemap-0.xml` and `/sitemap-index.xml` by default, which may conflict with preexisting files. Set `filenameBase` to a custom value to avoid that if so: - -```js - import { defineConfig } from 'astro/config'; - import sitemap from '@astrojs/sitemap'; - - export default defineConfig({ - site: 'https://example.com', - integrations: [ - sitemap({ - filenameBase: 'astronomy-sitemap', - }), - ], - }); -``` - -This will yield sitemap and index files as `https://example.com/astronomy-sitemap-0.xml` and `https://example.com/astronomy-sitemap-index.xml`. |