Simplify Docker setup to fix constructor error
- 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
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: 'standalone',
|
||||
experimental: {
|
||||
optimizePackageImports: ['lucide-react'],
|
||||
},
|
||||
@@ -9,18 +8,12 @@ const nextConfig = {
|
||||
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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user