diff --git a/reflex/config.py b/reflex/config.py index 225b1a76b..c1baed99c 100644 --- a/reflex/config.py +++ b/reflex/config.py @@ -300,7 +300,9 @@ class Config(Base): # Convert the env var to the expected type. try: - if issubclass(field.type_, type) and issubclass(field.type_, bool): + if field.type_ == bool or ( + issubclass(field.type_, type) and issubclass(field.type_, bool) + ): # special handling for bool values env_var = env_var.lower() in ["true", "1", "yes"] else: