chore: Перенёс конфигурацию генератора Sitemap в отдельный файл

This commit is contained in:
Иван Кузьменко 2026-04-11 21:28:18 +03:00
parent 694a852652
commit 5472ca22fe
2 changed files with 10 additions and 1 deletions

View file

@ -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"

9
svelte-sitemap.config.ts Normal file
View file

@ -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;