auth.api.getSession() Causing Issue on Vercel Build
i am trying to fetch the user session on the server to do some stuff with it and it works fine when running in locally, but when i build it on Vercel edge function and deploy it, it gives me a server error saying I'm calling localhost?
I assumed maybe its the env variable so i logged it in build time and it is the correct domain
what could the issue be?


2 Replies