/** @type {import('next').NextConfig} */ const BACKEND_INTERNAL_URL = process.env.BACKEND_INTERNAL_URL || "http://localhost:20001"; const nextConfig = { reactStrictMode: true, output: "standalone", images: { remotePatterns: [{ protocol: "http", hostname: "**" }, { protocol: "https", hostname: "**" }] }, async rewrites() { return [ { source: "/api/:path*", destination: `${BACKEND_INTERNAL_URL}/api/:path*` } ]; } }; export default nextConfig;