Generating the sitemap
Astro’s sitemap integration emits app/dist/sitemap.xml automatically during bun run build, using the canonical domain configured in app/astro.config.mjs.
Route mapping
- The integration maps each built page to its canonical route under the site root, trimming
index.htmland duplicate slashes where appropriate. - Only public-facing pages should appear. Temporary previews, drafts, and local-only routes should be ignored or removed before running the build.
- After content or navigation changes, rebuild the site and confirm that new routes appear once under their expected path.