Works on localhost but not when deployed #1480
Replies: 5 comments 1 reply
-
and the providers are setup like this: discord |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, were you able to solve it? |
Beta Was this translation helpful? Give feedback.
-
Same issue. how did you fix it? |
Beta Was this translation helpful? Give feedback.
-
whats the fix? |
Beta Was this translation helpful? Give feedback.
-
Since you are deploying on Vercel, try to remove the NEXTAUTH_URL from the envs and see if it works. Unlike other platforms, vercel will discover that particular variable automatically. Since you said the login works, I think that might just be the issue, if that doesn't work. Then check the error written in the logs and let me know. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Hi, I am currently working on a PWA and implementing
next-auth
. It works pretty fine inlocalhost
but it doesn't when I deploy it to Vercel.When deployed, after login, the site becomes unresponsive and nothing is shown there.
Steps to reproduce
You can access this website: https://dev.synaptiko.io and try to login. The app will freeze and eventually becomes unresponsive.
Expected behavior
The site should work the same way as it does in desktop
Screenshots or error logs
Localhost site with user logged in
Deployed site with user logged in
Additional context
pages/api/auth/[...nextauth].ts
pages/_app.tsx
custom
useSynaptikoSession
Beta Was this translation helpful? Give feedback.
All reactions