From adf52ef6588def76e184ea04b6c6024d71b927c9 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 4 May 2023 10:18:24 +0700 Subject: fixing share product with product image --- src/pages/shop/product/[slug].jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pages/shop/product/[slug].jsx b/src/pages/shop/product/[slug].jsx index cdba90c0..290529a7 100644 --- a/src/pages/shop/product/[slug].jsx +++ b/src/pages/shop/product/[slug].jsx @@ -42,7 +42,14 @@ export default function ProductDetail({ product }) { description='Temukan pilihan produk B2B Industri & Alat Teknik untuk Perusahaan, UMKM & Pemerintah dengan lengkap, mudah dan transparan.' openGraph={{ url: process.env.NEXT_PUBLIC_SELF_HOST + router.asPath, - image: product?.image, + images: [ + { + url: product?.image, + width: 800, + height: 800, + alt: product?.name, + }, + ], type: 'product' }} additionalMetaTags={[ -- cgit v1.2.3