updated addr

This commit is contained in:
2025-09-19 13:22:44 +01:00
parent 41da85620d
commit 93bc348406
2 changed files with 4 additions and 4 deletions

6
.env
View File

@@ -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/
VITE_LOCAL_BASE=http://10.42.0.1:8080/

View File

@@ -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`);