Files
Todo/next.config.js
Paul Bailey 0d26087049 Add Docker configuration for port 3500
- Add Dockerfile with multi-stage build for production
- Add docker-compose.yml for easy deployment
- Add .dockerignore to exclude unnecessary files
- Add DOCKER_SETUP.md with comprehensive setup guide
- Update next.config.js to enable standalone output mode
- Configure app to run on port 3500
- Keep MySQL server external to Docker
2025-12-02 10:09:13 +00:00

24 lines
584 B
JavaScript

/** @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'],
},
// Enable compression
compress: true,
// Production source maps (smaller)
productionBrowserSourceMaps: false,
}
module.exports = nextConfig