From 39689b3b4a65f4a9bc562510d1fc2e256f3bec8e Mon Sep 17 00:00:00 2001 From: aline-pereira Date: Tue, 19 May 2026 08:59:41 -0300 Subject: [PATCH] fix: removed height that causes vtex crop image --- website/components/Image.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/website/components/Image.tsx b/website/components/Image.tsx index 018243d29..e877a54ee 100644 --- a/website/components/Image.tsx +++ b/website/components/Image.tsx @@ -123,20 +123,20 @@ const optmizeShopify = (opts: OptimizationOptions) => { }; const optimizeVTEX = (opts: OptimizationOptions) => { - const { originalSrc, width, height } = opts; + const { originalSrc, width } = opts; const src = new URL(originalSrc); const [slash, arquivos, ids, rawId, ...rest] = src.pathname.split("/"); - const [trueId, _w, _h] = rawId.split("-"); + const [trueId] = rawId.split("-"); src.pathname = [ - slash, - arquivos, - ids, - `${trueId}-${width}-${height}`, - ...rest, - ].join("/"); + slash, + arquivos, + ids, + `${trueId}-${width}-0`, + ...rest] + .join("/"); return src.href; };