From fb3d8c2a25e36e615dccb80fc50de95d202afd3d Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Wed, 3 Dec 2025 01:21:00 +0000 Subject: [PATCH] Disable SSR and simplify Next.js config to fix webpack errors --- app/list/[id]/page.tsx | 3 +++ next.config.js | 15 ++++----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/app/list/[id]/page.tsx b/app/list/[id]/page.tsx index 73020cd..a800270 100644 --- a/app/list/[id]/page.tsx +++ b/app/list/[id]/page.tsx @@ -11,6 +11,9 @@ import ListDetailView from '@/components/ListDetailView' export const dynamic = 'force-dynamic' export const revalidate = 0 +export const dynamic = 'force-dynamic' +export const revalidate = 0 + export default async function ListDetailPage({ params }: { params: { id: string } }) { const session = await getServerSession(authOptions) if (!session?.user?.id) { diff --git a/next.config.js b/next.config.js index bf9040d..a54e766 100644 --- a/next.config.js +++ b/next.config.js @@ -1,18 +1,11 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - experimental: { - optimizePackageImports: ['lucide-react'], - }, - compiler: { - removeConsole: process.env.NODE_ENV === 'production' ? { - exclude: ['error', 'warn'], - } : false, - }, - swcMinify: true, + reactStrictMode: false, + swcMinify: false, images: { - formats: ['image/avif', 'image/webp'], + unoptimized: true, }, - compress: true, + compress: false, productionBrowserSourceMaps: false, trailingSlash: false, poweredByHeader: false,