500 Error on Custom domain but on Vercel Link it works

Hello,

I need help with my website. i suddenly started receiving 500 Error while accessing my login page on my project’s custom domain link but it works just fine on the vercel link.

can anyone help me please or if you have faced a similar issue can you please let me know how to solve this?

I have already checked the logs it does not show anything useful and I made sure DNS and env variables are correct. I did all the troubleshooting possible but did not solve it.

What error details do you see in the logs, browser dev tools, or on the login page?

i get a type error “unable to read undefined” which is something that does not make sense because the db is up and running and its read just fine from the other link and through other tests i made. It also works from my custom domain link if i open it from incognito mode! it just does not work while on my normal browser.

That sounds like a local issue since it works in incognito mode. If you clear the browser cache, does it work in your normal browser?

Hello, Yes of course i tried clearing my cache but it also does not work!