From 34a81a6437b9a8af36ddc168d59cc0c2e5c3ba8c Mon Sep 17 00:00:00 2001 From: denshooter Date: Fri, 6 Mar 2026 12:31:09 +0100 Subject: [PATCH] fix: resolve TypeScript errors in CI type-check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - next.config.ts: cssChunking 'loose' → false ('loose' not in type) - ActivityFeed.test.tsx: remove always-truthy TS2872 literal expression Co-Authored-By: Claude Sonnet 4.6 --- app/__tests__/components/ActivityFeed.test.tsx | 2 +- next.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/__tests__/components/ActivityFeed.test.tsx b/app/__tests__/components/ActivityFeed.test.tsx index a8f33e3..b606581 100644 --- a/app/__tests__/components/ActivityFeed.test.tsx +++ b/app/__tests__/components/ActivityFeed.test.tsx @@ -58,7 +58,7 @@ describe('ActivityFeed NaN Handling', () => { }); it('should convert gaming.name to string safely', () => { - const validName = String('Test Game' || ''); + const validName = String('Test Game'); expect(validName).toBe('Test Game'); expect(typeof validName).toBe('string'); diff --git a/next.config.ts b/next.config.ts index 251413f..2e49e52 100644 --- a/next.config.ts +++ b/next.config.ts @@ -36,7 +36,7 @@ const nextConfig: NextConfig = { optimizePackageImports: ["lucide-react", "framer-motion", "react-icons", "@tiptap/react"], // Merge all CSS into a single chunk to eliminate the render-blocking CSS chain // (84dc7384.css → 3aefc04b.css sequential dependency reported by PageSpeed). - cssChunking: "loose", + cssChunking: false, // Note: optimizeCss (critters) is intentionally disabled — it converts the main // to a JS-deferred preload, which PageSpeed reads as a // sequential CSS chain and reports 410ms of render-blocking.