/** @type {import('next').NextConfig} */ const nextConfig = { async rewrites() { return [ { // matching all API routes source: "/api/:path*", destination: "http://127.0.0.1:8000/:path*" } ] } }; export default nextConfig;