From 6526b3c02a9fcf5efd62fa4af9900ed68695f0bd Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Tue, 12 Dec 2023 23:07:32 +1100 Subject: [PATCH] chore: always add alternatives --- src/runtime/sitemap/urlset/i18n.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime/sitemap/urlset/i18n.ts b/src/runtime/sitemap/urlset/i18n.ts index 841204a7..d0f5fba2 100644 --- a/src/runtime/sitemap/urlset/i18n.ts +++ b/src/runtime/sitemap/urlset/i18n.ts @@ -57,8 +57,7 @@ export function normaliseI18nSources(sources: SitemapSourceResolved[], { autoI18 }) .flat() .filter(Boolean) as AlternativeEntry[] - // default and original locale are 2 - if (alternatives.length > 2) + if (alternatives.length) url.alternatives = alternatives } return {