diff --git a/packages/gene-tools/src/generators/bff-app-generator/files/app/next.config.js__tmpl__ b/packages/gene-tools/src/generators/bff-app-generator/files/app/next.config.js__tmpl__ index c40b4f0..b82c30c 100644 --- a/packages/gene-tools/src/generators/bff-app-generator/files/app/next.config.js__tmpl__ +++ b/packages/gene-tools/src/generators/bff-app-generator/files/app/next.config.js__tmpl__ @@ -44,7 +44,7 @@ const domains = [ 'srv-supersonic-images.z-dn.net', ]; -module.exports = () => { +const getConfig = () => { return plugins.reduce( (acc, next) => { if (typeof next !== 'function') { @@ -96,3 +96,5 @@ module.exports = () => { } ); }; + +module.exports = getConfig(); diff --git a/packages/gene-tools/src/generators/nextjs-app-generator/files/app/next.config.js__tmpl__ b/packages/gene-tools/src/generators/nextjs-app-generator/files/app/next.config.js__tmpl__ index 18c4934..a8a7f0b 100644 --- a/packages/gene-tools/src/generators/nextjs-app-generator/files/app/next.config.js__tmpl__ +++ b/packages/gene-tools/src/generators/nextjs-app-generator/files/app/next.config.js__tmpl__ @@ -22,7 +22,7 @@ const plugins = [withNodeModulesCSS, withBundleAnalyzer, withNx].concat( const domains = [ ]; -module.exports = () => { +const getConfig = () => { return plugins.reduce( (acc, next) => { if (typeof next !== 'function') { @@ -74,3 +74,5 @@ module.exports = () => { } ); }; + +module.exports = getConfig();