diy-template-components 0.2.39 → 0.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.es.js +3 -5
- package/build/index.es.js.map +1 -1
- package/build/index.js +3 -5
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1523,13 +1523,11 @@ const NextImageRenderer = ({
|
|
|
1523
1523
|
} = useContext(PageContext);
|
|
1524
1524
|
const imageLoader = ({
|
|
1525
1525
|
src,
|
|
1526
|
-
quality
|
|
1526
|
+
quality,
|
|
1527
|
+
width
|
|
1527
1528
|
}) => {
|
|
1528
|
-
return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}`;
|
|
1529
|
+
return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${width}`;
|
|
1529
1530
|
};
|
|
1530
|
-
|
|
1531
|
-
// const imageUrl = `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}`;
|
|
1532
|
-
|
|
1533
1531
|
let {
|
|
1534
1532
|
refSetter,
|
|
1535
1533
|
className
|