Skip to content

Commit 5544459

Browse files
committed
fix: disable debug mode in production
1 parent ef9d84d commit 5544459

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,5 @@ def sort():
8888
return jsonify({'error': 'An internal server error occurred'}), 500
8989

9090
if __name__ == '__main__':
91-
app.run(debug=True, port=5001)
91+
debug_mode = os.environ.get('FLASK_ENV') == 'development'
92+
app.run(debug=debug_mode, port=5001)

0 commit comments

Comments
 (0)