From 7c6af6a4ef2ed9f378614ed2c17ec890429145d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Galley?= Date: Tue, 15 Oct 2024 17:04:08 -0400 Subject: [PATCH] force upload assets url that point to another assets (#1085) --- apps/web/src/components/ImageCloudinary/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/ImageCloudinary/index.tsx b/apps/web/src/components/ImageCloudinary/index.tsx index eec48c9cae..8b0b20e268 100644 --- a/apps/web/src/components/ImageCloudinary/index.tsx +++ b/apps/web/src/components/ImageCloudinary/index.tsx @@ -39,7 +39,11 @@ export default function ImageCloudinary({ width: Number(width), }); - const shouldUploadToCloudinary = isDataUrl(absoluteSrc) || absoluteSrc.length > 255; + const shouldUploadToCloudinary = + isDataUrl(absoluteSrc) || + absoluteSrc.length > 255 || + absoluteSrc.includes('?image=') || + absoluteSrc.includes('?url='); useEffect(() => { // Some images need to be uploaded before being proxied