This is a module to generate a sitemap.xml file for your SvelteKit project.
bun add -D github:max-lt/svelte-sitemap
svelte.config.ts
:import { sitemap } from "./vite.sitemap";
export default defineConfig({
plugins: [
sveltekit(),
sitemap({
website: "https://example.com",
target: ".svelte-kit/output/client/sitemap.xml",
}),
],
});