Skip to content

Commit 0e90690

Browse files
committed
bug fix for backend
1 parent c1f2277 commit 0e90690

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)