Skip to content

Commit

Permalink
fix: allow for any case env flag for NO_MINIFY
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Oct 10, 2024
1 parent 7117914 commit 75ceca2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/staking/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ const nextConfig = {
},
webpack: (config) => {
config.externals.push('pino-pretty', 'lokijs', 'encoding');
const noMinify = process.env.NO_MINIFY === 'true';
if (noMinify) {
if (process.env.NO_MINIFY?.toLowerCase() === 'true') {
config.optimization = {
minimize: false,
};
Expand Down

0 comments on commit 75ceca2

Please sign in to comment.