svelte-sitemap
svelte-sitemap copied to clipboard
Referencing the sitemap.xml in a Netlify build
Hey there,
maybe I'm really stupid here but I'm quite new to Sveltekit and has struggled with getting this plugin to work on a Netlify deploy. It get's added correctly to the build folder, which I can also see when I download the deploy from Netlify, but when visiting the mysite.com/sitemap.xml
url, I get a 404 and I interpret it like Sveltekit expects a route, but nothing found.
Do I need to exclude the sitemap from the routes somehow?
I've seen some other solutions online where people create their own loader and custom build function for the sitemap which I could do of course, but I was under the impression this was not needed for this plugin? Or how are people actually being able to "visit" their sitemap without Sveltekit interfering and trying to render a route there?
Thanks!
// Jens.