From df38ecbe39fbc7d606c32f77afaa07ca0af2f430 Mon Sep 17 00:00:00 2001 From: Philip Schmidt Date: Thu, 27 Jun 2024 15:01:27 +0200 Subject: [PATCH] Add comments --- src/imgproxy/loader.ts | 1 + 1 file changed, 1 insertion(+) 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);