Next.js Discord

Discord Forum

Corporate Proxies in Edge Runtime

Unanswered
Petit Bleu de Gascogne posted this in #help-forum
Open in Discord
Avatar
Petit Bleu de GascogneOP
Hi there,

I'm currently working on updating next-auth from V4 to V5 and struggle on getting the middleware part working with the coperate proxy. The Route Handler from Next-Auth works just fine due to the latest changes in next-auth which allowed me to add the proxy-agent to the fetches but that package sadly isn't compatible with the edge runtime which causes a bunch of errors in the middleware / edge runtime.

Has someone a similar situation and has found a solution for that?

0 Replies