fix: environment variable override for database configuration (#40)

This commit is contained in:
Amit Patil
2025-07-29 20:22:35 -07:00
committed by GitHub
parent 770c7ef7e7
commit d80eb7b2ac

View File

@@ -29,8 +29,9 @@ def get_port_from_env() -> int:
class Settings(BaseSettings):
# Environment Configuration
environment: str = "development"
development_db_url: str = (
"postgresql://user:password@localhost:5432/agent_dashboard"
development_db_url: str = os.getenv(
"DEVELOPMENT_DB_URL",
"postgresql://user:password@localhost:5432/agent_dashboard",
)
production_db_url: str = ""