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