We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22bc1d9 + bfbea20 commit fe3aac3Copy full SHA for fe3aac3
app/blog/[...slug]/page.tsx
@@ -45,7 +45,7 @@ export async function generateMetadata(props: {
45
}
46
const ogImages = imageList.map((img) => {
47
return {
48
- url: img.includes('http') ? img : siteMetadata.siteUrl + img,
+ url: img && img.includes('http') ? img : siteMetadata.siteUrl + img,
49
50
})
51
0 commit comments