diff --git a/src/imgproxy/loader.ts b/src/imgproxy/loader.ts index edbe880..ef382fa 100644 --- a/src/imgproxy/loader.ts +++ b/src/imgproxy/loader.ts @@ -4,6 +4,7 @@ import { ImageLoaderProps } from 'next/image'; const imgProxyLoader = (pathSegment: string = '_img') => ({ src, width, quality }: ImageLoaderProps) => { + // If the source is not an S3 URL, return the original source if (!src.startsWith('s3://')) return src; const encodedUrl = urlSafeBase64(src);