diy-template-components 0.2.37 → 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 -8
- package/build/index.es.js.map +1 -1
- package/build/index.js +8 -8
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1521,12 +1521,13 @@ const NextImageRenderer = ({
|
|
|
1521
1521
|
const {
|
|
1522
1522
|
isCustomWebsite
|
|
1523
1523
|
} = useContext(PageContext);
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
|
|
1524
|
+
|
|
1525
|
+
// const imageLoader = ({ src, quality }) => {
|
|
1526
|
+
// return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX
|
|
1527
|
+
// }/_next/image?url=${src}&q=${quality || 75}`;
|
|
1528
|
+
// };
|
|
1529
|
+
|
|
1530
|
+
const imageUrl = `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}${src}`;
|
|
1530
1531
|
let {
|
|
1531
1532
|
refSetter,
|
|
1532
1533
|
className
|
|
@@ -1534,8 +1535,7 @@ const NextImageRenderer = ({
|
|
|
1534
1535
|
if (isCustomWebsite) {
|
|
1535
1536
|
const NextImage = require('next/image').default;
|
|
1536
1537
|
return /*#__PURE__*/React.createElement(NextImage, _extends({
|
|
1537
|
-
|
|
1538
|
-
src: src,
|
|
1538
|
+
src: imageUrl,
|
|
1539
1539
|
layout: 'fill',
|
|
1540
1540
|
ref: refSetter,
|
|
1541
1541
|
className: className
|