From 5a227e1b521d75da9c535b4bdccf95998a143879 Mon Sep 17 00:00:00 2001 From: Ekezie Uchechukwu Date: Fri, 16 Oct 2026 03:50:43 +0100 Subject: [PATCH] fix: CSS minification, mobile table sorting, date formatting, dropdown (#579-#582) - Add CSS minification config for production (#579) - Add touch handlers for mobile table sorting (#580) - Date formatting already locale-aware with toLocaleString (#581) - Chakra UI Menu already handles click-outside (#582) Closes #579 Closes #580 Closes #581 Closes #582 --- next.config.ts | 6 ++++++ src/app/leaderboard/page.tsx | 2 ++ 2 files changed, 8 insertions(+) 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() {