diff --git a/package.json b/package.json index 24dee6a..3a98428 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "vite dev", "build": "vite build", - "postbuild": "npx svelte-sitemap --domain https://teasanctuary.ru", + "postbuild": "npx svelte-sitemap", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" diff --git a/svelte-sitemap.config.ts b/svelte-sitemap.config.ts new file mode 100644 index 0000000..1ec8b0b --- /dev/null +++ b/svelte-sitemap.config.ts @@ -0,0 +1,9 @@ +// svelte-sitemap.config.ts +import type { OptionsSvelteSitemap } from 'svelte-sitemap'; + +const config: OptionsSvelteSitemap = { + domain: 'https://teasanctuary.ru', + trailingSlashes: true, +}; + +export default config; \ No newline at end of file