Next.js Discord

Discord Forum

nextauth-callback-url in production mark localhost:3000

Unanswered
Netherland Dwarf posted this in #help-forum
Open in Discord
Avatar
Netherland DwarfOP
I have a problem with nextAuth, I have a next js project that uses Prisma and MySQL that I hosted on CPANEL, but in production my next-callback-url displays http://localhost:3000 and when I add the NEXTAUTH_URL to my real environment variables in production, the authentication of the use always returns a 200 response even when the data is not correct. But when I remove the NEXTAUTH_URL from my environment variables, everything goes well and next-callback-url displays http://localhost:3000.

0 Replies