summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-05-04 10:18:24 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-05-04 10:18:24 +0700
commitadf52ef6588def76e184ea04b6c6024d71b927c9 (patch)
tree93161610e3cc7f51997c14454d79fa5892f8dfe0
parent7b12c20a46e4119e9a34ad15f9109765876a265b (diff)
fixing share product with product image
-rw-r--r--src/pages/shop/product/[slug].jsx9
1 files changed, 8 insertions, 1 deletions
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 &amp; Alat Teknik untuk Perusahaan, UMKM &amp; 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={[