/** @type {import('next').Config} */ const nextConfig = { productionBrowserSourceMaps: false, webpack: (config, { isServer, dev }) => { // Disable source maps for the server build in production // to prevent EvalError in strict environments (e.g. Coolify) if (isServer && !dev) { config.devtool = false; } return config; }, }; export default nextConfig;