def is_prod_mode() -> bool:
    """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.
    """
    current_mode = environment.REFLEX_ENV_MODE.get()
    return current_mode == constants.Env.PROD
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.
    
reflex/utils/exec.py