I have been trying to get Better-Auth to work in productions for the Better ð part of the past few days!
I have it working perfectly in development with no issues but when I deploy it to Production (even Pre-Production) via. Vercel; I am unable to signin or anything.
How would I fix this?!
It it related too
baseURL
baseURL
,
trustedOrigin
trustedOrigin
or something else?!
I have:
https://localhost:3000
https://localhost:3000
,
*.example.com
*.example.com
(which would include my main production and beta.main.production domain) and
https://*.vercel.app
https://*.vercel.app
!
Solution
It's the same domain names!
But I did just figure out the issue ð I was using direct connection to my database and not a pooler! So I changed that and it works now ð