Dynamic sitemap.xml in Astro SSR

122 · Flaviocopes · July 18, 2026, 7:18 a.m.
Summary
This blog post discusses how to generate dynamic sitemap.xml and robots.txt files in an Astro SSR application without using the @astrojs/sitemap package. It highlights the use of API routes, typed registries, and testable pure functions to achieve this functionality.