MCPcopy
hub / github.com/reflex-dev/reflex / is_prod_mode

Function is_prod_mode

reflex/utils/exec.py:856–863  ·  view source on GitHub ↗

Check if the app is running in production mode. Returns: True if the app is running in production mode or False if running in dev mode.

()

Source from the content-addressed store, hash-verified

854
855
856def is_prod_mode() -> bool:
857 """Check if the app is running in production mode.
858
859 Returns:
860 True if the app is running in production mode or False if running in dev mode.
861 """
862 current_mode = environment.REFLEX_ENV_MODE.get()
863 return current_mode == constants.Env.PROD
864
865
866def should_prerender_routes() -> bool:

Callers 6

__post_init__Method · 0.90
_compile_contextsFunction · 0.90
purge_web_pages_dirFunction · 0.90
compile_appFunction · 0.90
should_prerender_routesFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected