diy-template-components 0.2.64 → 0.2.65
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 +5 -1
- package/build/index.es.js.map +1 -1
- package/build/index.js +5 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1153,7 +1153,11 @@ const NextImageRenderer = ({
|
|
|
1153
1153
|
desktop: 1200
|
|
1154
1154
|
};
|
|
1155
1155
|
const dynamicWidth = isMobile ? breakpoints.mobile : breakpoints?.desktop;
|
|
1156
|
-
|
|
1156
|
+
if (process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX !== undefined) {
|
|
1157
|
+
return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&w=${width}&q=${quality || 75}`;
|
|
1158
|
+
} else {
|
|
1159
|
+
return `/_next/image?url=${src}&w=${width}&q=${quality || 75}`;
|
|
1160
|
+
}
|
|
1157
1161
|
};
|
|
1158
1162
|
const NextImage = require('next/image').default;
|
|
1159
1163
|
return /*#__PURE__*/React.createElement(NextImage, _extends({
|