fix: resolve TypeScript errors in CI type-check
All checks were successful
CI / CD / test-build (push) Successful in 10m10s
CI / CD / deploy-dev (push) Successful in 1m53s
CI / CD / deploy-production (push) Has been skipped

- 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 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 12:31:09 +01:00
parent fa48610e3e
commit 34a81a6437
2 changed files with 2 additions and 2 deletions

View File

@@ -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');

View File

@@ -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
// <link rel="stylesheet"> to a JS-deferred preload, which PageSpeed reads as a
// sequential CSS chain and reports 410ms of render-blocking.