diff --git a/reflex/config.py b/reflex/config.py index c1baed99c..21ca1970c 100644 --- a/reflex/config.py +++ b/reflex/config.py @@ -300,7 +300,7 @@ class Config(Base): # Convert the env var to the expected type. try: - if field.type_ == bool or ( + if field.type_ is bool or ( issubclass(field.type_, type) and issubclass(field.type_, bool) ): # special handling for bool values