DEV Community

Discussion on: SvelteKit Blog SEO: Climb the Search Results Page

askrodney profile image
Rodney Lab Author

It does now! Would love feedback if you have time to test it out. I included an endpoint to serve the sitemap for SSR sites and also a script to generate it for static sites.

  • If you want to go SSR, just delete the (dummy) sitemap at static/sitemap.xml and it should just work 🤞🏽 (endpoint file at routes/sitemap.xml.js)
  • If you want to go static, generate the sitemap as a oneoff by running pnpm generate:sitemap or to generate pre every build update build script in package.json to something like npm run generate:sitemap && svelte-kit build.
endymion1818 profile image
Ben Read

Aw fab! I definitely will check this out! Thank you for responding!