svelte-sitemap

This is a module to generate a sitemap.xml file for your SvelteKit project.

Requirements

  • Bun
  • SvelteKit
  • Vite

Usage

  1. Install the module:
bun add -D github:max-lt/svelte-sitemap
  1. Add the plugin to your 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",
    }),
  ],
});

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes