Skip to content

Commit c6ae460

Browse files
committed
2 parents c712965 + 0e90690 commit c6ae460

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ services:
2020
ports:
2121
- "3000:3000"
2222
environment:
23-
- NEXT_PUBLIC_API_URL=http://backend:5000/api
24-
depends_on:
25-
- backend
26-
networks:
27-
- glow-network
23+
- NEXT_PUBLIC_API_URL=https://glow-backend-v4-0-0.onrender.com/api
2824

2925
mongo:
3026
image: mongo:5.0

frontend/src/components/MapComponent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Chart.register(
3939
// Async function to fetch historical data for a specific beach
4040
async function fetchHistoricalData(beachName) {
4141
try {
42-
const NEXT_PUBLIC_API_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:5000/api';
42+
const NEXT_PUBLIC_API_URL = process.env.NEXT_PUBLIC_API_URL || 'https://glow-backend-v4-0-0.onrender.com/api';
4343

4444
const response = await fetch(`${NEXT_PUBLIC_API_URL}/beach-history?beachName=${encodeURIComponent(beachName)}`);
4545
const data = await response.json();

0 commit comments

Comments
 (0)