Skip to content

Commit

Permalink
force upload assets url that point to another assets (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkas authored Oct 15, 2024
1 parent 704c196 commit 7c6af6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/src/components/ImageCloudinary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c6af6a

Please sign in to comment.