Issue configuring proxy.ts with NextAuth v5 (authConfig split for Edge compatibility)
#13329
Unanswered
martinestiga
asked this question in
Help
Replies: 0 comments
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.
-
Hi!
I'm migrating to Next.js 16 and trying to configure the new
proxy.tswith NextAuth 5.0.0-beta.30. I have split my auth configuration into two files (as recommended for non-Edge compatibility), following the documentation:https://authjs.dev/getting-started/migrating-to-v5#edge-compatibility
My
proxy.tscurrently looks like this:But Next.js throws this error when building:
Could someone please clarify how to correctly define the
proxy.tsfor Next.js 16 with NextAuth v5 when auth configuration is split into two files (non-Edge)?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions