Skip to content

Commit efb75a4

Browse files
authored
omit loader prop in ProxyImage component
1 parent 1238155 commit efb75a4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitpatty/next-image-s3-imgproxy-loader",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "imgproxy S3 extension for next/image",
55
"author": "Matteias Collet <[email protected]>",
66
"main": "dist/index.js",

src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ const ProxyImage = ({
101101
proxyParams,
102102
format,
103103
...props
104-
}: ProxyImageProps & Omit<ImageProps, 'src' | 'quality' | 'unoptimized'>) => {
104+
}: ProxyImageProps &
105+
Omit<ImageProps, 'src' | 'quality' | 'unoptimized' | 'loader'>) => {
105106
const imageLoader = ({ src, width }: ImageLoaderProps): string => {
106107
const urlParams = new URLSearchParams();
107108
urlParams.append('src', src);

0 commit comments

Comments
 (0)