fix: filter bundles from homepage, sitemap, and static params
Some checks failed
Build and Deploy / build (push) Has been cancelled
Some checks failed
Build and Deploy / build (push) Has been cancelled
This commit is contained in:
@@ -40,7 +40,10 @@ export default async function Homepage({ params }: { params: Promise<{ locale: s
|
||||
console.log("Failed to fetch products during build");
|
||||
}
|
||||
|
||||
const featuredProducts = products?.slice(0, 4) || [];
|
||||
const filteredProducts = products?.filter(
|
||||
(p: any) => !p.name.includes("2x Set") && !p.name.includes("3x Set")
|
||||
);
|
||||
const featuredProducts = filteredProducts?.slice(0, 4) || [];
|
||||
const hasProducts = featuredProducts.length > 0;
|
||||
|
||||
const basePath = `/${validLocale}`;
|
||||
|
||||
Reference in New Issue
Block a user