fix(storefront): sitemap wraps listActiveProducts in listSafe to prevent build timeout

This commit is contained in:
chattie
2026-08-24 20:52:46 +02:00
parent 8ce1a36ef6
commit 874d7faac0

View File

@@ -14,7 +14,7 @@ const STATIC_ROUTES = ['/', '/products/search'] as const;
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const [products, categories, brands] = await Promise.all([
listActiveProducts(),
listSafe(() => listActiveProducts()),
listSafe(() => listCategoryTree()),
listSafe(() => listBrands()),
]);