Add `x-forwarded-*` headers to turbopack renders (#50012)
This PR forwards the [new `ServerInfo`](https://github.com/vercel/turbo/pull/5018) struct to Turbopack's rendering processes, allowing it to initialize the requesting headers with the `x-forwarded-*` headers. These headers, and `x-forwarded-proto` in particular, are necessary for [NextAuth to work](https://github.com/nextauthjs/next-auth/blob/f62c0167/packages/next-auth/src/core/index.ts#L73-L76). These headers are initialized in the non-turbo server via [`http-proxy`](https://github.com/http-party/node-http-proxy/blob/9b96cd72/lib/http-proxy/passes/web-incoming.js#L58-L86). Fixes WEB-1064
Showing
Please
register
or
sign in
to comment