From 4a5bf79aa3129bdcee22c8c40878ce40c06d3e58 Mon Sep 17 00:00:00 2001 From: Rishikesh Anand Date: Tue, 26 Nov 2024 00:35:36 -0700 Subject: [PATCH] fix: Update backend to a dedicated endpoint --- deployment/backend.py | 3 +-- deployment/frontend.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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",