- 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
11 lines
303 B
JavaScript
11 lines
303 B
JavaScript
import { defineConfig } from "astro/config";
|
|
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 },
|
|
});
|