Hello,
I developed my Website with next.js on my local desktop, when I build it to Vercel, I get an error in the website console (See photo).
On my local app nextAuth works, but not on Vercel, I tried everything, but nothing works. I hope that someone with experience can help me with this issue.
I use NextAuth for my login page. My provider is Discord, and this is my Environment Variables:
DISCORD_CLIENT_ID={clientId}
DISCORD_CLIENT_SECRET={secretId}
NEXTAUTH_URL=https://onelife-website.vercel.app
- I redacted the client and secret because it is sensitive information
if I missed something, please let me know.