From c74e8b97bcd210f0edbc0a5428ae0cf92e1211bc Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Sun, 20 Oct 2024 17:58:33 +0200 Subject: [PATCH] make it work with bare bool as well --- reflex/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: