- Remove standalone output mode from Next.js config - Use single-stage Docker build with npm start - Eliminate complex multi-stage build that was causing issues
21 lines
475 B
JavaScript
21 lines
475 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
optimizePackageImports: ['lucide-react'],
|
|
},
|
|
compiler: {
|
|
removeConsole: process.env.NODE_ENV === 'production' ? {
|
|
exclude: ['error', 'warn'],
|
|
} : false,
|
|
},
|
|
swcMinify: true,
|
|
images: {
|
|
formats: ['image/avif', 'image/webp'],
|
|
},
|
|
compress: true,
|
|
productionBrowserSourceMaps: false,
|
|
trailingSlash: false,
|
|
poweredByHeader: false,
|
|
}
|
|
|
|
module.exports = nextConfig |