diy-template-components 0.2.46 → 0.2.47

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
@@ -1141,7 +1141,7 @@ const NextImageRenderer = ({
1141
1141
  refSetter,
1142
1142
  className
1143
1143
  } = props;
1144
- if (isCustomWebsite && typeof Image !== 'undefined') {
1144
+ if (isCustomWebsite) {
1145
1145
  const classes = nextImageRendererStyles();
1146
1146
  const imageLoader = ({
1147
1147
  src,
@@ -1156,6 +1156,7 @@ const NextImageRenderer = ({
1156
1156
  return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${dynamicWidth}`;
1157
1157
  };
1158
1158
  const NextImage = require('next/image').default;
1159
+ console.log('next image succes');
1159
1160
  return /*#__PURE__*/React.createElement(NextImage, _extends({
1160
1161
  priority: sectionIndex === '0' ? true : false,
1161
1162
  loader: imageLoader,
@@ -1167,6 +1168,7 @@ const NextImageRenderer = ({
1167
1168
  alt: "image"
1168
1169
  }));
1169
1170
  } else {
1171
+ console.log('next image failed image tag');
1170
1172
  return /*#__PURE__*/React.createElement("img", {
1171
1173
  ref: refSetter,
1172
1174
  className: className,