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 CHANGED
@@ -1521,6 +1521,13 @@ const NextImageRenderer = ({
1521
1521
  const {
1522
1522
  isCustomWebsite
1523
1523
  } = useContext(PageContext);
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}`;
1524
1531
  let {
1525
1532
  refSetter,
1526
1533
  className
@@ -1528,7 +1535,7 @@ const NextImageRenderer = ({
1528
1535
  if (isCustomWebsite) {
1529
1536
  const NextImage = require('next/image').default;
1530
1537
  return /*#__PURE__*/React.createElement(NextImage, _extends({
1531
- src: src,
1538
+ src: imageUrl,
1532
1539
  layout: 'fill',
1533
1540
  ref: refSetter,
1534
1541
  className: className