Skip to content

Conversation

@anish-devgit
Copy link

Description

Fixes a regression where rewrites acting as proxies return 500 in standalone production builds due to tracing issues with dynamic requires.

Changes

  • Moved http-proxy require to top-level to ensure correct tracing in output: 'standalone'.
  • Added xfwd: true to support standard forwarded headers.

Fixes

Fixes #87071

@nextjs-bot
Copy link
Collaborator

nextjs-bot commented Dec 16, 2025

Allow CI Workflow Run

  • approve CI run for commit: 8979104

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Next.js 16: rewrite/proxy no longer works in production (500), but works in dev

2 participants