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),
|
||||
|
||||
@@ -32,7 +32,7 @@ export async function generateMetadata({
|
||||
const localeKey = resolveLocale(locale);
|
||||
const t = await getTranslations({ locale: localeKey, namespace: "portfolioPage" });
|
||||
|
||||
return buildLocalizedMetadata({
|
||||
return await buildLocalizedMetadata({
|
||||
locale: localeKey,
|
||||
pathname: "/portfolio",
|
||||
title: t("title"),
|
||||
|
||||
Reference in New Issue
Block a user