From 6da5fb7bb7ae932594498d461406797813b95e16 Mon Sep 17 00:00:00 2001 From: Fovway Date: Mon, 13 Oct 2025 23:26:15 +0700 Subject: [PATCH] modified: frontend/src/components/HealthCheck.jsx modified: frontend/src/services/api.js --- frontend/src/components/HealthCheck.jsx | 2 +- frontend/src/services/api.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/HealthCheck.jsx b/frontend/src/components/HealthCheck.jsx index 6185982..b938e86 100644 --- a/frontend/src/components/HealthCheck.jsx +++ b/frontend/src/components/HealthCheck.jsx @@ -6,7 +6,7 @@ const HealthCheck = () => { useEffect(() => { const checkHealth = async () => { try { - const response = await fetch("http://localhost:5000/health"); + const response = await fetch("http://94.159.103.139:5000/health"); if (!response.ok) throw new Error("Server not responding"); setServerDown(false); } catch (error) { diff --git a/frontend/src/services/api.js b/frontend/src/services/api.js index a7bfe1e..8912894 100644 --- a/frontend/src/services/api.js +++ b/frontend/src/services/api.js @@ -1,6 +1,6 @@ import axios from "axios"; -const API_BASE_URL = "http://localhost:5000/api"; +const API_BASE_URL = "http://94.159.103.139:5000/api"; const api = axios.create({ baseURL: API_BASE_URL,