Files
xbcr/runtime_mode.py
T

5 lines
179 B
Python

"""An explicit process-level switch, never controlled by an HTTP request."""
import os
PREVIEW_MODE = os.environ.get("XBNIU_PREVIEW", "").strip().lower() in ("1", "true", "yes")