Skip to content

Commit

Permalink
feat: 배포 시 콘솔 로그 안 나오도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
llddang committed Oct 24, 2024
1 parent b3c1639 commit a39c615
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ const nextConfig = {
},
};

if (process.env.NEXT_PUBLIC_NODE_ENV === 'prod') {
nextConfig.compiler = {
removeConsole: true,
};
}

export default nextConfig;

0 comments on commit a39c615

Please sign in to comment.