I'm having an issue with Auth.js (NextAuth) v5 in my Next.js application when deploying with Dokploy
I'm having an issue with Auth.js (NextAuth) v5 in my Next.js application when deploying with Dokploy on my VPS server. The providers' URLs are showing localhost:3000 instead of my production domain.
The same setup works correctly when deployed to Vercel, but fails on my VPS server deployment. When I add AUTH_URL=https://mydomain.com to env in production: