diff --git a/reflex/config.py b/reflex/config.py index 719d5c21f..225b1a76b 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 issubclass(field.type_, bool): + if issubclass(field.type_, type) and issubclass(field.type_, bool): # special handling for bool values env_var = env_var.lower() in ["true", "1", "yes"] else: