Skip to content

Commit ae7b43d

Browse files
committed
fixup! 📦 Build: Modernize Python packaging and Flask 3.x compatibility
🔧 App: Disable debug mode by default, use `FLASK_DEBUG` env var Debug mode was hardcoded to `True`, which is unsafe for production. Default to off and read from the `FLASK_DEBUG` environment variable instead. Run with `FLASK_DEBUG=1` for local development. Assisted-by: Claude Opus 4.6 (1M context) Signed-off-by: Justin Wheeler <git@jwheel.org>
1 parent 5127951 commit ae7b43d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import os
2+
13
from hflossk.site import app
24

35
if __name__ == "__main__":
4-
app.run(debug=True)
6+
app.run(debug=os.environ.get("FLASK_DEBUG", "0") == "1")

0 commit comments

Comments
 (0)