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:
2025-12-02 13:54:26 +00:00
parent 3a3db4195f
commit 60ebf13a9c
2 changed files with 5 additions and 55 deletions

View File

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