fix: filter bundles from homepage, sitemap, and static params
Some checks failed
Build and Deploy / build (push) Has been cancelled

This commit is contained in:
Unchained
2026-03-24 20:14:42 +02:00
parent 8f780c3585
commit bfce7dcca0
3 changed files with 13 additions and 3 deletions

View File

@@ -80,9 +80,13 @@ export default async function sitemap(): Promise<SitemapEntry[]> {
},
];
const filteredProducts = products.filter(
(p: any) => !p.name.includes("2x Set") && !p.name.includes("3x Set")
);
const productUrls: SitemapEntry[] = [];
for (const product of products) {
for (const product of filteredProducts) {
const hreflangs: Record<string, string> = {};
for (const locale of SUPPORTED_LOCALES) {
const path = locale === "sr" ? `/products/${product.slug}` : `/${locale}/products/${product.slug}`;