Skip to content

Commit

Permalink
add myvtex.com to vtex image url pattern (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrasileiro authored Oct 22, 2024
1 parent ff97939 commit ebf5c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/components/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ebf5c1f

Please sign in to comment.