Replies: 2 comments 5 replies
-
Just adding some work notes while I debug this: import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
async rewrites() {
const beforeFiles = [
{
source: "/proxy/:path*",
destination: `${process.env.FOO_BAR}/:path*`,
},
];
return {
beforeFiles,
};
}
};
export default nextConfig; This ➜ FOO_BAR=http://example.edu yarn dev --port 1234
yarn run v1.22.22
$ next dev --turbopack --port 1234
▲ Next.js 15.3.1 (Turbopack)
- Local: http://localhost:1234
- Network: http://192.168.25.70:1234
✓ Starting...
✓ Ready in 1885ms
○ Compiling / ...
✓ Compiled / in 2.5s Notice, next 15.3.1... and no standalone output mode, which could potentially be the problem, because, IIRC, the config is serialized at some point... |
Beta Was this translation helpful? Give feedback.
5 replies
-
I have the same issue with v15.2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I’m encountering an issue after upgrading to Next.js 15.2.4 — the rewrites configuration in next.config.ts no longer works as expected.
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions