Skip to content

Commit

Permalink
- remove logs in production in nextjs
Browse files Browse the repository at this point in the history
  • Loading branch information
adelpro committed May 29, 2024
1 parent 3e33e18 commit 54df875
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const config = {
output: 'standalone',
productionBrowserSourceMaps: false,
//bundlePagesRouterDependencies: true,
compiler: {
removeConsole:
process.env.NODE_ENV === 'production' ? { exclude: ['error'] } : false,
},
images: {
remotePatterns: [
{
Expand Down

0 comments on commit 54df875

Please sign in to comment.