/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, // Enable standalone output for Docker deployment output: 'standalone', // Environment variables env: { NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:4000', }, // Monaco editor webpack config webpack: (config, { isServer }) => { if (!isServer) { // Monaco editor workers config.resolve.fallback = { ...config.resolve.fallback, fs: false, path: false, }; } return config; }, // Image domains images: { remotePatterns: [ { protocol: 'https', hostname: 'api.dicebear.com' }, { protocol: 'https', hostname: 'lh3.googleusercontent.com' }, ], }, }; export default nextConfig;