/** @type {import('next').NextConfig} */ const nextConfig = { experimental: { optimizePackageImports: ['lucide-react'], }, compiler: { removeConsole: process.env.NODE_ENV === 'production' ? { exclude: ['error', 'warn'], } : false, }, // Enable SWC minification for better performance swcMinify: true, // Optimize images images: { formats: ['image/avif', 'image/webp'], }, // Enable compression compress: true, // Production source maps (smaller) productionBrowserSourceMaps: false, } module.exports = nextConfig