/** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', 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'], unoptimized: process.env.NODE_ENV === 'production', }, // Enable compression compress: true, // Production source maps (smaller) productionBrowserSourceMaps: false, // Ensure proper handling in Docker trailingSlash: false, poweredByHeader: false, } module.exports = nextConfig