async rewrites() {
return [
{
source: "/api/:path*",
destination: "https://example-prod-url/api/:path*",
},
];
},
I found this was in our next config. Which makes a lot of sense now why this was behaving the way it was.