This is a module to generate a sitemap.xml file for your SvelteKit project.
bun add -D github:max-lt/svelte-sitemap # latest version
bun add -D github:max-lt/svelte-sitemap#7e85df # specific commit
# or (development version)
bun add -D ~/Documents/projects/svelte-sitemap # local path
vite.config.ts
:import { sitemap } from "./vite.sitemap";
export default defineConfig({
plugins: [
sveltekit(),
sitemap({
website: "https://example.com",
target: ".svelte-kit/output/client/sitemap.xml",
}),
],
});