Skip to content

Commit

Permalink
chore(gene-tools): update next.config.js to export object in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kopach committed Dec 19, 2024
1 parent 9e249d2 commit 946ca88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 946ca88

Please sign in to comment.