Replies: 2 comments · 5 replies
-
Hello, I know it's been a while but I have the same problem right now, did you manage to fix it? |
Beta Was this translation helpful? Give feedback.
-
I ran into the same redirect issue, but in my case I was using WorkOS AuthKit + Next.js (App Router) deployed on AWS Amplify, not NextAuth. Posting this here since the root cause and fix are similar and might help others. 🧩 Problem ⚙️ Root cause ✅ Fix Then update your /app/callback/route.ts: Now WorkOS redirects correctly to your deployed domain. ✅ Summary: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know what went wrong in my deployment. If I do deploy in Vercel the app works fine. But on AWS it is redirecting me to localhost:3000.
I went through similar discussions and applied some suggestions I saw there. Still it is not working as expected.
This is my build file.
Also have added my environment variables in Amplify console. The variable name is NEXTAUTH_URL
Beta Was this translation helpful? Give feedback.
All reactions