Hello techies, im building a fullstack app with Ne...
# orm-help
h
Hello techies, im building a fullstack app with Nextjs, Prisma, and PostgreSql. I am trying to activate the next-auth with my github. Everything is configured fine, when I connected it with local host and configured the oauth app on github, i can use my github to login to the app, but when I try to connect the nextauth_url with the url of my prospective vercel app...its saying server error. Am i in the right place to get answers? this is the repo (https://github.com/muhammedctgr/p-hammed-blogr-nextjs-prisma) and this is where its hosted https://p-hammed-blogr-nextjs-prisma.vercel.app/ Thanks in advance.
👀 1
✅ 1
r
If you see
CLIENT_FETCH_ERROR
make sure you have configured the
NEXTAUTH_URL
environment variable.
h
thanks for your reply...I have it configured in my .env file already
r
Can you please share the logs from your server?
h
on it
configuring localhost with NEXTAUTH_URL, client id and secret works, just dont know why its not when i configured it with my hosted vercel app.
r
can you check the logs on your hosted vercel app?
Hi @Hammedctgr, did you have any luck with checking the logs on Vercel?
Hi @Hammedctgr, from the logs, there is a missing environment variable. You would need to define a
secret
in production. To configure the environment variable, check the vercel documentation here.