import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", async rewrites() { const backendUrl = process.env.BACKEND_INTERNAL_URL ?? "http://localhost:8000"; return [ { source: "/api/backend/:path*", destination: `${backendUrl}/:path*`, }, ]; }, }; export default nextConfig;