From a26962263d2174aea2662d82f078e69735f616a4 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Fri, 7 Feb 2025 20:20:14 +0100 Subject: [PATCH] change default deploy_url and api_url --- reflex/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reflex/config.py b/reflex/config.py index c51e0a25a..eb7e0d459 100644 --- a/reflex/config.py +++ b/reflex/config.py @@ -630,10 +630,12 @@ class Config(Base): backend_port: int | None = None # The backend url the frontend will connect to. This must be updated if the backend is hosted elsewhere, or in production. - api_url: str = f"http://localhost:{backend_port}" + api_url: str = f"http://localhost:{constants.DefaultPorts.BACKEND_PORT}" # The url the frontend will be hosted on. - deploy_url: Optional[str] = f"http://localhost:{frontend_port}" + deploy_url: Optional[str] = ( + f"http://localhost:{constants.DefaultPorts.FRONTEND_PORT}" + ) # The url the backend will be hosted on. backend_host: str = "0.0.0.0"