This commit is contained in:
@@ -58,7 +58,7 @@ export async function generateMetadata({
|
||||
const item = await getPublishedPortfolioProjectBySlug(slug);
|
||||
|
||||
if (!item) {
|
||||
return buildLocalizedMetadata({
|
||||
return await buildLocalizedMetadata({
|
||||
locale: localeKey,
|
||||
pathname: `/portfolio/${slug}`,
|
||||
title: "Portfolio",
|
||||
@@ -66,7 +66,7 @@ export async function generateMetadata({
|
||||
});
|
||||
}
|
||||
|
||||
return buildLocalizedMetadata({
|
||||
return await buildLocalizedMetadata({
|
||||
locale: localeKey,
|
||||
pathname: `/portfolio/${slug}`,
|
||||
title: getLocalizedValue(item.title, localeKey),
|
||||
|
||||
Reference in New Issue
Block a user