/** @type {import(next).NextConfig} */ const nextConfig = { output: "standalone", images: { unoptimized: true }, async rewrites() { return [ { source: "/api/:path*", destination: "http://backend:4000/api/:path*" } ]; } }; module.exports = nextConfig;