diff --git a/astro.config.mjs b/astro.config.mjs index 62f3df3..a414bcf 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -33,6 +33,13 @@ export default defineConfig({ if (item.links?.length) { const def = item.links.find((l) => l.lang === DEFAULT_LOCALE); if (def) item.links = [...item.links, { url: def.url, lang: "x-default" }]; + } else { + // single-locale page (e.g. /privacy/, EN-only): self-annotate + // so the sitemap agrees with the tags (en + x-default) + item.links = [ + { url: item.url, lang: DEFAULT_LOCALE }, + { url: item.url, lang: "x-default" }, + ]; } return item; },