False45 commited on
Commit
075ecd2
·
1 Parent(s): 3a9614f

fix: correct dotenv path resolution in config.py to properly load backend/.env file

Browse files
Files changed (1) hide show
  1. src/config.py +1 -1
src/config.py CHANGED
@@ -13,7 +13,7 @@ from pydantic_settings import BaseSettings, SettingsConfigDict
13
 
14
  # Ensure .env is loaded for local development
15
  from dotenv import load_dotenv
16
- load_dotenv(dotenv_path=Path(__file__).resolve().parent.parent.parent.parent / ".env", override=True)
17
 
18
 
19
  class Settings(BaseSettings):
 
13
 
14
  # Ensure .env is loaded for local development
15
  from dotenv import load_dotenv
16
+ load_dotenv(dotenv_path=Path(__file__).resolve().parent.parent / ".env", override=True)
17
 
18
 
19
  class Settings(BaseSettings):