modified: frontend/src/components/HealthCheck.jsx
modified: frontend/src/services/api.js
This commit is contained in:
parent
2186808c35
commit
6da5fb7bb7
@ -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) {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user