This commit is contained in:
@@ -37,7 +37,7 @@ export async function generateMetadata({
|
||||
const item = getProductItem(slug);
|
||||
|
||||
if (!item) {
|
||||
return buildLocalizedMetadata({
|
||||
return await buildLocalizedMetadata({
|
||||
locale: localeKey,
|
||||
pathname: `/products/${slug}`,
|
||||
title: "Products",
|
||||
@@ -45,7 +45,7 @@ export async function generateMetadata({
|
||||
});
|
||||
}
|
||||
|
||||
return buildLocalizedMetadata({
|
||||
return await buildLocalizedMetadata({
|
||||
locale: localeKey,
|
||||
pathname: `/products/${slug}`,
|
||||
title: pickText(item.name, localeKey),
|
||||
|
||||
Reference in New Issue
Block a user