Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
esdete2 committed Jun 27, 2024
1 parent f2cd6d7 commit df38ecb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/imgproxy/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit df38ecb

Please sign in to comment.