diff --git a/src/backend/app/config.py b/src/backend/app/config.py index 4d2e740bcb..4e71c850cf 100644 --- a/src/backend/app/config.py +++ b/src/backend/app/config.py @@ -140,7 +140,7 @@ def configure_s3_download_root(cls, v: Optional[str], info: ValidationInfo) -> s else: fmtm_domain = info.data.get("FMTM_DOMAIN") # Local dev - if s3_endpoint == "http://s3:9000": + if info.data.get("DEBUG"): dev_port = info.data.get("FMTM_DEV_PORT") return f"http://s3.{fmtm_domain}:{dev_port}" return f"https://s3.{fmtm_domain}"