diff --git a/deployment/backend.py b/deployment/backend.py index f16b6b8b..f3ef58a0 100644 --- a/deployment/backend.py +++ b/deployment/backend.py @@ -88,8 +88,7 @@ def create_service(self): protocol="TCP", expose=True, app_protocol="http", - host=f"{self.application_set_name}.{self.base_domain_url}", - path="/api/", + host=f"{self.application_set_name}-{BACKEND_SERVICE_NAME}.{self.base_domain_url}", ) ], mounts=[ diff --git a/deployment/frontend.py b/deployment/frontend.py index 9e0a65db..ed3cac0d 100644 --- a/deployment/frontend.py +++ b/deployment/frontend.py @@ -7,7 +7,7 @@ Service, ) -from deployment.config import FRONTEND_SERVICE_NAME +from deployment.config import BACKEND_SERVICE_NAME, FRONTEND_SERVICE_NAME class Frontend: @@ -28,7 +28,7 @@ def create_service(self): dockerfile_path="./frontend/Dockerfile", build_context_path="./frontend", build_args={ - "VITE_QA_FOUNDRY_URL": f"https://{self.application_set_name}.{self.base_domain_url}/api", + "VITE_QA_FOUNDRY_URL": f"https://{self.application_set_name}-{BACKEND_SERVICE_NAME}.{self.base_domain_url}", "VITE_DOCS_QA_STANDALONE_PATH": "/", "VITE_DOCS_QA_ENABLE_STANDALONE": "true", "VITE_DOCS_QA_DELETE_COLLECTIONS": "true",