Should BETTER_AUTH_URL be equal in both prod and dev?

When I deploy my app, should I put domain in BETTER_AUTH_URL or just leave it as http://localhost:3000?

Also, why is this enviroment variable? Wouldn't it be better if this was configured in betterAuth({...}) in auth.ts?
Was this page helpful?