const backendUrl = process.env.BACKEND_INTERNAL_URL || 'http://backend:8000' /** @type {import('next').NextConfig} */ const nextConfig = { async rewrites() { return [ { source: '/api/:path*', destination: `${backendUrl}/:path*`, }, ] }, } module.exports = nextConfig