diy-template-components 0.2.36 → 0.2.37

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