sitemap missing (Astro)
What this means
Section titled “What this means”No @astrojs/sitemap integration, no sitemap endpoint in src/pages/, and no static public/sitemap.xml. Without a sitemap, search engines rely on link discovery alone, which is unreliable for sites with more than a handful of pages.
How to fix it
Section titled “How to fix it”@astrojs/sitemap is the right approach. It generates a sitemap automatically from your routes at build time and requires no manual maintenance.
npx astro add sitemapThat command installs the package and adds it to astro.config.ts. You must also set site in the config — the integration cannot generate absolute URLs without it.
import { defineConfig } from 'astro/config'import sitemap from '@astrojs/sitemap'
export default defineConfig({ site: 'https://example.com', integrations: [sitemap()],})After the next build, the sitemap appears at /sitemap-index.xml.
Verify the fix
Section titled “Verify the fix”curl https://yourdomain.com/sitemap-index.xmlConfirm the response is valid XML. Then re-run orino audit.