diff --git a/.env b/.env index cf05986..8073986 100644 --- a/.env +++ b/.env @@ -13,7 +13,7 @@ VITE_AGX_FRONT=http://100.72.72.70:8080/SightingListFront/sightingSummary?mostRe VITE_AGX_FRONT_BASE=http://100.72.72.70:8080/ -VITE_LOCAL=http://localhost:8080/SightingListRear/sightingSummary?mostRecentRef= -VITE_LOCAL_FRONT=http://localhost:8080/SightingListFront/sightingSummary?mostRecentRef= +VITE_LOCAL=http://10.42.0.1:8080/SightingListRear/sightingSummary?mostRecentRef= +VITE_LOCAL_FRONT=http://10.42.0.1t:8080/SightingListFront/sightingSummary?mostRecentRef= -VITE_LOCAL_BASE=http://localhost:8080/ \ No newline at end of file +VITE_LOCAL_BASE=http://10.42.0.1:8080/ \ No newline at end of file diff --git a/src/hooks/useGetOverviewSnapshot.ts b/src/hooks/useGetOverviewSnapshot.ts index 9609caf..c89b353 100644 --- a/src/hooks/useGetOverviewSnapshot.ts +++ b/src/hooks/useGetOverviewSnapshot.ts @@ -1,7 +1,7 @@ import { useRef, useCallback, useEffect } from "react"; import { useQuery } from "@tanstack/react-query"; -const apiUrl = import.meta.env.VITE_AGX_FRONT_BASE; +const apiUrl = import.meta.env.VITE_LOCAL_BASE; async function fetchSnapshot(cameraSide: string) { const response = await fetch(`${apiUrl}/${cameraSide}-preview`);