From d6d11bc91468408f464445c77f5af2e155cf1887 Mon Sep 17 00:00:00 2001 From: Igor Brasileiro Date: Tue, 15 Oct 2024 10:08:05 -0300 Subject: [PATCH] add myvtex.com to vtex image url pattern --- website/components/Image.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/components/Image.tsx b/website/components/Image.tsx index ed3e63b61..3774ab93f 100644 --- a/website/components/Image.tsx +++ b/website/components/Image.tsx @@ -100,7 +100,7 @@ export const getOptimizedMediaUrl = (opts: OptimizationOptions) => { } if ( - /(vteximg.com.br|vtexassets.com)\/arquivos\/ids\/\d+/.test(originalSrc) + /(vteximg.com.br|vtexassets.com|myvtex.com)\/arquivos\/ids\/\d+/.test(originalSrc) ) { return optimizeVTEX(opts); }