Disable SSR and simplify Next.js config to fix webpack errors

This commit is contained in:
2025-12-03 01:21:00 +00:00
parent 5e4242ba7d
commit fb3d8c2a25
2 changed files with 7 additions and 11 deletions

View File

@@ -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,