DEV Community

Discussion on: SvelteKit Sitemap

Collapse
 
rbt profile image
Richard Beattie

It can be anywhere but best would be in the root of your project
e.g.

my-sveltekit-app:
├── svelte.config.cjs
├── generateSitemap.js
├── src
│   ├── ...
├── ...
Enter fullscreen mode Exit fullscreen mode

If you want to put it somewhere else you'll need to reflect that in the prebuild command. I've updated the post to make this clearer, thanks for the feedback!