Skip to content

Commit

Permalink
Merge pull request #1 from networkteam/next
Browse files Browse the repository at this point in the history
Add comments
  • Loading branch information
esdete2 committed Jun 27, 2024
2 parents f2cd6d7 + df38ecb commit cc1ebd9
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 cc1ebd9

Please sign in to comment.