diff --git a/client/src/components/Map3D.jsx b/client/src/components/Map3D.jsx index 2d7d141..efe611b 100644 --- a/client/src/components/Map3D.jsx +++ b/client/src/components/Map3D.jsx @@ -1160,7 +1160,7 @@ function Scene({ interactionMode, onInteraction }) { useEffect(() => { const fetchMiningAreas = async () => { try { - const response = await fetch('http://localhost:3001/api/mining-areas'); + const response = await fetch(`${window.location.origin}/api/mining-areas`); if (response.ok) { const data = await response.json(); setMiningAreas(data);