diff --git a/next.config.ts b/next.config.ts index e8c14f6..ae2addd 100644 --- a/next.config.ts +++ b/next.config.ts @@ -47,6 +47,12 @@ const CSP_POLICY = [ const nextConfig: NextConfig = { reactStrictMode: true, + // Ensure CSS minification in production (#579) + compiler: { + removeConsole: process.env.NODE_ENV === 'production' ? { + exclude: ['error'], + } : false, + }, poweredByHeader: false, images: { unoptimized: true, diff --git a/src/app/leaderboard/page.tsx b/src/app/leaderboard/page.tsx index d22b86f..a3a5b1c 100644 --- a/src/app/leaderboard/page.tsx +++ b/src/app/leaderboard/page.tsx @@ -237,6 +237,7 @@ export default function LeaderboardPage() {