docs: clarify how to select production mode

KL
1d ago
+4-0

Setting REFLEX_ENV_MODE=prod does not select production mode for reflex run. Clarify this in the environment-variable reference and point readers to uv run reflex run --env prod.

Refs #5893, where a user encountered this after reading the reference and a maintainer explained the variable's role in passing runtime configuration.

Validation:

  • Verified the real Click argument parser with REFLEX_ENV_MODE=prod: run selects dev, run --env prod selects prod, and run --env dev selects dev. The final server-start function was intercepted for these checks.
  • Pre-commit ruff-format, ruff-check, and codespell passed.
  • The documentation site was not built; no runtime code changes or new tests are included.

AI assistance: OpenAI Codex helped prepare the wording and run the local checks.