fix: disable debug by default

This commit is contained in:
2026-07-06 18:40:49 +08:00
parent 6bc2a5f8d7
commit 9c3ad677b9
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -26,6 +26,7 @@ def env_bool(name: str, default: bool = False) -> bool:
class Config:
DEBUG = env_bool("DEBUG", False)
SECRET_KEY = os.environ.get("SECRET_KEY") or secrets.token_hex(32)
SECRET_KEY_GENERATED = not bool(os.environ.get("SECRET_KEY"))
SQLALCHEMY_DATABASE_URI = os.environ.get(