We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1f2277 commit 0e90690Copy full SHA for 0e90690
1 file changed
frontend/src/components/MapComponent.jsx
@@ -39,7 +39,7 @@ Chart.register(
39
// Async function to fetch historical data for a specific beach
40
async function fetchHistoricalData(beachName) {
41
try {
42
- const NEXT_PUBLIC_API_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:5000/api';
+ const NEXT_PUBLIC_API_URL = process.env.NEXT_PUBLIC_API_URL || 'https://glow-backend-v4-0-0.onrender.com/api';
43
44
const response = await fetch(`${NEXT_PUBLIC_API_URL}/beach-history?beachName=${encodeURIComponent(beachName)}`);
45
const data = await response.json();
0 commit comments