Added Test Mode

This commit is contained in:
2026-01-31 14:42:08 -06:00
parent d0de47bdd7
commit c5e3fd33c4
4 changed files with 32 additions and 1 deletions

View File

@@ -1,7 +1,10 @@
import os
from dotenv import load_dotenv
load_dotenv()
# Load appropriate .env file based on ENV_MODE
env_mode = os.getenv("ENV_MODE", "production")
env_file = ".env.testing" if env_mode == "testing" else ".env"
load_dotenv(env_file)
class Config: