refactor(env): centralize auth env handling and prefer BETTER_AUTH_BASE_URL

This commit is contained in:
2026-01-24 10:10:00 +00:00
parent dc324b03a3
commit a9cb97727d
4 changed files with 40 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
DATABASE_URL=postgres://username:password@localhost:5432/database_name
BETTER_AUTH_SECRET=replace_with_a_long_random_secret
BETTER_AUTH_URL=http://localhost:3000
BETTER_AUTH_BASE_URL=http://localhost:3000
BETTER_AUTH_TRUSTED_ORIGINS=http://localhost:5173
PORT=3000
MINIO_ENDPOINT=localhost