diy-template-components 0.2.38 → 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 +9 -8
- package/build/index.es.js.map +1 -1
- package/build/index.js +9 -8
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1536,13 +1536,13 @@ const NextImageRenderer = ({
|
|
|
1536
1536
|
const {
|
|
1537
1537
|
isCustomWebsite
|
|
1538
1538
|
} = React.useContext(PageContext);
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1539
|
+
const imageLoader = ({
|
|
1540
|
+
src,
|
|
1541
|
+
quality,
|
|
1542
|
+
width
|
|
1543
|
+
}) => {
|
|
1544
|
+
return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${width}`;
|
|
1545
|
+
};
|
|
1546
1546
|
let {
|
|
1547
1547
|
refSetter,
|
|
1548
1548
|
className
|
|
@@ -1550,7 +1550,8 @@ const NextImageRenderer = ({
|
|
|
1550
1550
|
if (isCustomWebsite) {
|
|
1551
1551
|
const NextImage = require('next/image').default;
|
|
1552
1552
|
return /*#__PURE__*/React__default["default"].createElement(NextImage, _extends({
|
|
1553
|
-
|
|
1553
|
+
loader: imageLoader,
|
|
1554
|
+
src: src,
|
|
1554
1555
|
layout: 'fill',
|
|
1555
1556
|
ref: refSetter,
|
|
1556
1557
|
className: className
|