Skip to content

Commit 4369a81

Browse files
committed
refactor: Update dotenv loading to always override environment variables
1 parent 23f3f38 commit 4369a81

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

backend/src/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
from src.api.middlewares import setup_middlewares
1616
from src.socketio_server import init_socketio
1717

18-
dotenv_override = os.getenv('FLASK_ENV', 'development').lower() != 'production'
19-
load_dotenv(override=dotenv_override)
18+
load_dotenv(override=False)
2019

2120
# Add the backend directory to the Python path
2221
backend_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))

0 commit comments

Comments
 (0)