discord callback url
I deployed my project to verscel but my discord redirect url for nextauth isn't working.
The verscel domain is :https://forex-news-discord-bot.vercel.app/
so I made the redirect url https://localhost:3000/forex-news-discord-bot.vercel.app/
![No description](https://cdn.answeroverflow.com/1148715184471408701/Screen_Shot_2023-09-05_at_4.23.11_PM.png)
15 Replies
For the prod redirect url it would be
https://forex-news-discord-bot.vercel.app/api/auth/callback/discord
if you want it to work locally, then you'd replace the redirect url with http://localhost:3000/api/auth/callback/discord
fwiw i've never been able to get Vercel preview envs + Discord auth to behave, since the Discord API does not support wildcard redirect domains. only specific hardcoded domains
yea the re-direct is having issues now lol
thank you
![No description](https://cdn.answeroverflow.com/1148741416290357289/Screen_Shot_2023-09-05_at_6.08.11_PM.png)
now whenever I try to sign in I just get this
check the console in vsc it'll have more info
sorry on vercel*
Hm yes that is an error I haven't seen before. maybe you discord app is set to only allow certain users? I vaguely recall some test-mode/allowlist settings like that
that error on the ui is pretty generic
ohh didn't know I can do that lol
do I need to prisma db push on verscel or something?
You can't use sqlite on vercel.
oh lmfao forgot to change that
The data wouldnt be saved correctly due to how serverless works
ahh good to know
I was trying planetscale, do you recommend anything else
if you dont want to manage it yourself planetscale is fine
alright awesome
thank you