fix(storefront): sitemap wraps listActiveProducts in listSafe to prevent build timeout
This commit is contained in:
@@ -14,7 +14,7 @@ const STATIC_ROUTES = ['/', '/products/search'] as const;
|
|||||||
|
|
||||||
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||||
const [products, categories, brands] = await Promise.all([
|
const [products, categories, brands] = await Promise.all([
|
||||||
listActiveProducts(),
|
listSafe(() => listActiveProducts()),
|
||||||
listSafe(() => listCategoryTree()),
|
listSafe(() => listCategoryTree()),
|
||||||
listSafe(() => listBrands()),
|
listSafe(() => listBrands()),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user