@astrojs/sitemap@3.7.4

withastro/astro@astrojs/sitemap@3.7.4Aug 31, 2026by astrobot-houston

AI Summary

Fixes an issue where the homepage URL in the generated sitemap was missing a trailing slash under specific configuration settings.

Key Highlights

  • Fixes homepage URL generation in sitemaps when `trailingSlash` is set to 'never'.
  • Fixes sitemap URL format when `build.format` is set to 'file'.

Full Release Notes

### Patch Changes

-   [#17851](https://github.com/withastro/astro/pull/17851) [`52d3f56`](https://github.com/withastro/astro/commit/52d3f56999ecdf92510b2c16ed2a3a4785b9c73a) Thanks [@astro-factory](https://github.com/apps/astro-factory)! - Fixes the sitemap outputting a URL with an empty path for the homepage (e.g. `https://example.com` instead of `https://example.com/`) when `trailingSlash` is set to `"never"` or `build.format` is set to `"file"`