File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ Chart.register(
3939// Async function to fetch historical data for a specific beach
4040async 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 ( ) ;
You can’t perform that action at this time.
0 commit comments