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.js CHANGED
@@ -1536,12 +1536,13 @@ 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
+
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}`;
1545
1546
  let {
1546
1547
  refSetter,
1547
1548
  className
@@ -1549,8 +1550,7 @@ const NextImageRenderer = ({
1549
1550
  if (isCustomWebsite) {
1550
1551
  const NextImage = require('next/image').default;
1551
1552
  return /*#__PURE__*/React__default["default"].createElement(NextImage, _extends({
1552
- loader: imageLoader,
1553
- src: src,
1553
+ src: imageUrl,
1554
1554
  layout: 'fill',
1555
1555
  ref: refSetter,
1556
1556
  className: className