Skip to content

Commit 4927f8b

Browse files
committed
Fix bug with metadata with no images
1 parent 78c2be2 commit 4927f8b

File tree

1 file changed

+1
-1
lines changed
  • src/app/(frontend)/[locale]/projects

1 file changed

+1
-1
lines changed

src/app/(frontend)/[locale]/projects/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function generateMetadata({
6464
metadataBase: new URL(process.env.NEXT_PUBLIC_PAYLOAD_URL || ''),
6565
title,
6666
openGraph: {
67-
images: ogImage.url!,
67+
images: ogImage?.url || '',
6868
},
6969
}
7070
}

0 commit comments

Comments
 (0)