diff --git a/src/components/Header/HotspotSearch.tsx b/src/components/Header/HotspotSearch.tsx index 16e60f7..894dd9e 100644 --- a/src/components/Header/HotspotSearch.tsx +++ b/src/components/Header/HotspotSearch.tsx @@ -38,7 +38,7 @@ export function HotspotSearch() { try { const searchUrl = new URL( - `${process.env.NEXT_PUBLIC_HELIUMGEEK_EXPLORER_API2_URL}` + `${process.env.NEXT_PUBLIC_HELIUMGEEK_EXPLORER_API_URL}` ) searchUrl.searchParams.append("name", query.trim()) diff --git a/src/components/HotspotsMap/HexHotspots.tsx b/src/components/HotspotsMap/HexHotspots.tsx index b2a56f6..5297247 100644 --- a/src/components/HotspotsMap/HexHotspots.tsx +++ b/src/components/HotspotsMap/HexHotspots.tsx @@ -48,10 +48,8 @@ function getGroupedHotspots(hotspots: Hotspot[]) { } export async function HexHotspots({ hexId }: { hexId: string }) { - console.log(process.env.NEXT_PUBLIC_HELIUMGEEK_EXPLORER_API2_URL) - console.log(process.env.NEXT_PUBLIC_HELIUMGEEK_EXPLORER_API_TOKEN) const hotspots = (await fetch( - `${process.env.NEXT_PUBLIC_HELIUMGEEK_EXPLORER_API2_URL}/hex/${hexId}`, + `${process.env.NEXT_PUBLIC_HELIUMGEEK_EXPLORER_API_URL}/hex/${hexId}`, { headers: { "x-api-key": `${process.env.NEXT_PUBLIC_HELIUMGEEK_EXPLORER_API_TOKEN}`,