diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-04 10:18:24 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-04 10:18:24 +0700 |
| commit | adf52ef6588def76e184ea04b6c6024d71b927c9 (patch) | |
| tree | 93161610e3cc7f51997c14454d79fa5892f8dfe0 /src | |
| parent | 7b12c20a46e4119e9a34ad15f9109765876a265b (diff) | |
fixing share product with product image
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/shop/product/[slug].jsx | 9 |
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 & 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={[ |
