modified: frontend/src/components/HealthCheck.jsx

modified:   frontend/src/services/api.js
This commit is contained in:
Fovway 2025-10-13 23:26:15 +07:00
parent 2186808c35
commit 6da5fb7bb7
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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,