diff --git a/safeshare/K8s/frontend_deployment.yaml b/safeshare/K8s/frontend_deployment.yaml index 18d13cc..f520c87 100644 --- a/safeshare/K8s/frontend_deployment.yaml +++ b/safeshare/K8s/frontend_deployment.yaml @@ -21,5 +21,10 @@ spec: - name: safeshare-frontend image: amusement3004/safeshare-frontend imagePullPolicy: IfNotPresent + env: # Add these environment variables + - name: REACT_APP_API_HOST + value: safeshare-backend-service # The name of the backend service + - name: REACT_APP_API_PORT + value: "80" # The port the backend service listens on ports: - containerPort: 3000 \ No newline at end of file