What is the "right way" to use URL Configuration? Or auth in localhost?

I have a web app I'm working on. I have my domain set to the URL I want it to go to.
However when I am in local development and need to go through my auth, it keeps redirecting me to the URL in the URL Configuration. My work around right now is that whenever I'm developing, I switch the default URL Configuration to the localhost:3000, and it works.
But then my production auth redirect to localhost:3000 url. What is the right way to do this? Do I have to create another database just for dev?
Screenshot_2023-11-10_at_12.40.22_AM.png
Was this page helpful?