Skip to content

Commit 91d703b

Browse files
committed
test build
1 parent f1c1592 commit 91d703b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ export default function Home() {
1010
const fetchData = async () => {
1111
try {
1212
// First check if backend is healthy
13-
const healthCheck = await axios.get(`${process.env.NEXT_PUBLIC_API_URL}/api/health`);
13+
const healthCheck = await axios.get(`/api/health`);
1414

1515
if (healthCheck.data.status === 'healthy') {
1616
setStatus('Backend is connected!');
1717
// Then fetch the message
18-
const response = await axios.get(`${process.env.NEXT_PUBLIC_API_URL}/api/message`);
18+
const response = await axios.get(`/api/message`);
1919
setMessage(response.data.message);
2020
}
2121
} catch (error) {

0 commit comments

Comments
 (0)