import type { NextConfig } from "next"; const nextConfig: NextConfig = { async rewrites() { return [ { source: "/api/:path*", destination: "http://127.0.0.1:4332/api/:path*", }, ]; }, async headers() { return [ { source: "/api/:path*", headers: [ { key: "Cache-Control", value: "no-store, max-age=0" }, ], }, ]; }, }; export default nextConfig;