diff --git a/app/[locale]/api/og/product/route.tsx b/app/[locale]/api/og/product/route.tsx index d8d599a6..0e68ce43 100644 --- a/app/[locale]/api/og/product/route.tsx +++ b/app/[locale]/api/og/product/route.tsx @@ -63,7 +63,7 @@ export async function GET( title={product.frontmatter.title} description={product.frontmatter.description} label={product.frontmatter.categories?.[0] || 'Product'} - image={featuredImage} + image={featuredImage?.startsWith('http') ? featuredImage : undefined} /> ), { diff --git a/app/[locale]/blog/[slug]/opengraph-image.tsx b/app/[locale]/blog/[slug]/opengraph-image.tsx index a12d7f26..d65cf7a0 100644 --- a/app/[locale]/blog/[slug]/opengraph-image.tsx +++ b/app/[locale]/blog/[slug]/opengraph-image.tsx @@ -25,7 +25,7 @@ export default async function Image({ params: { locale, slug } }: { params: { lo title={post.frontmatter.title} description={post.frontmatter.excerpt} label={post.frontmatter.category || 'Blog'} - image={featuredImage} + image={featuredImage?.startsWith('http') ? featuredImage : undefined} /> ), { diff --git a/app/[locale]/products/opengraph-image.tsx b/app/[locale]/products/opengraph-image.tsx index 79995d61..5c5d13b5 100644 --- a/app/[locale]/products/opengraph-image.tsx +++ b/app/[locale]/products/opengraph-image.tsx @@ -72,7 +72,7 @@ export default async function Image({ params: { locale, slug } }: { params: { lo title={product.frontmatter.title} description={product.frontmatter.description} label={product.frontmatter.categories?.[0] || 'Product'} - image={featuredImage} + image={featuredImage?.startsWith('http') ? featuredImage : undefined} /> ), { diff --git a/app/[locale]/team/opengraph-image.tsx b/app/[locale]/team/opengraph-image.tsx index a9decaad..32a5e24b 100644 --- a/app/[locale]/team/opengraph-image.tsx +++ b/app/[locale]/team/opengraph-image.tsx @@ -15,7 +15,6 @@ export default async function Image({ params: { locale } }: { params: { locale: title={title} description={description} label="Our Team" - image="https://klz-cables.com/uploads/2024/12/DSC07655-Large.webp" /> ), {