/** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', reactStrictMode: true, async rewrites() { const apiBase = process.env.BACKEND_URL || 'http://127.0.0.1:8080'; return [ { source: '/api/:path*', destination: `${apiBase}/api/:path*`, }, { source: '/health', destination: `${apiBase}/health`, }, ]; }, }; export default nextConfig;