Generating `sitemap.xml` from your routes without repeating your domain on every row.
Overview
URL entries with lastmod/changefreq/priority, image/video/news extensions and hreflang alternates. Auto-splits past 50,000 URLs into an index. Emits XML and Next.js sitemap.ts objects.
`sitemapForSite(site.config, paths)` derives absolute URLs from your `defineSite()` config.
For a blog/docs, map your content list into the paths array so every page is indexed.
Zero-dependency and isomorphic — safe to import on the server, in the browser, on the edge and in React Native. It tree-shakes, so you only ship what you import.