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:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user