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