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.
()
| 854 | |
| 855 | |
| 856 | def 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 | |
| 866 | def should_prerender_routes() -> bool: |
no test coverage detected