S03: Consistent site origin — trailingSlash never, canonical URLs

- Add trailingSlash: 'never' to Astro config
- Normalize sitemap paths to never use trailing slash
- Ensures consistent canonical URLs across all pages
- Prevents duplicate content from / vs /path/ variants
This commit is contained in:
ik
2026-09-10 05:53:36 +07:00
parent 2c7dd27b4f
commit 3ea08fa706
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@ import node from "@astrojs/node";
export default defineConfig({
site: process.env.PUBLIC_SITE_URL || "https://rf4spotter.ru",
trailingSlash: "never",
output: "server",
adapter: node({ mode: "standalone" }),
server: { host: true, port: 4321 },