diff --git a/src/components/hotel/NearbyAmenitiesMap.js b/src/components/hotel/NearbyAmenitiesMap.js index 7ff8c77..4ab3361 100644 --- a/src/components/hotel/NearbyAmenitiesMap.js +++ b/src/components/hotel/NearbyAmenitiesMap.js @@ -105,7 +105,7 @@ export default function NearbyAmenitiesMap({hotel}) { clearMarkers() axios .get( - `http://localhost:8080/api/v1/locations/${category}?latitude=${centerCoords.lat()}&longitude=${centerCoords.lng()}&distance=${distance}` + `${process.env.NEXT_PUBLIC_BASE_URL}/api/v1/locations/${category}?latitude=${centerCoords.lat()}&longitude=${centerCoords.lng()}&distance=${distance}` ) .then((r) => { let newData = r.data.map((v) => { @@ -390,4 +390,4 @@ export default function NearbyAmenitiesMap({hotel}) { ) -} \ No newline at end of file +}