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