fix: drop FLASK_DEBUG in production detection logic

This commit is contained in:
2025-11-11 05:03:32 +01:00
parent 7f75a96737
commit a14959aa58

View File

@@ -15,8 +15,8 @@ from .models import db
load_dotenv()
# Determine if we're in production
_is_production = os.getenv(
'FLASK_DEBUG', '').lower() not in ('1', 'true', 'yes')
FLASK_ENV = os.getenv('FLASK_ENV', 'development').lower()
_is_production = FLASK_ENV == 'production'
def setup_logging(app: Flask) -> None: