Skip to content

Commit

Permalink
chore(gene-tools): update next.config.js generation (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
kopach authored Dec 19, 2024
1 parent e235743 commit 54dc022
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const devPlugins = [];
const plugins = [
withNodeModulesCSS,
withBundleAnalyzer,
withNx,
withBuildId,
withNx,
].concat(
process.env.NEXT_PUBLIC_ENV === 'local' ? devPlugins : productionPlugins
);
Expand All @@ -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') {
Expand Down Expand Up @@ -96,3 +96,5 @@ module.exports = () => {
}
);
};

module.exports = getConfig();
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -74,3 +74,5 @@ module.exports = () => {
}
);
};

module.exports = getConfig();

0 comments on commit 54dc022

Please sign in to comment.