updated addr
This commit is contained in:
6
.env
6
.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_AGX_FRONT_BASE=http://100.72.72.70:8080/
|
||||||
|
|
||||||
VITE_LOCAL=http://localhost:8080/SightingListRear/sightingSummary?mostRecentRef=
|
VITE_LOCAL=http://10.42.0.1:8080/SightingListRear/sightingSummary?mostRecentRef=
|
||||||
VITE_LOCAL_FRONT=http://localhost:8080/SightingListFront/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/
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useRef, useCallback, useEffect } from "react";
|
import { useRef, useCallback, useEffect } from "react";
|
||||||
import { useQuery } from "@tanstack/react-query";
|
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) {
|
async function fetchSnapshot(cameraSide: string) {
|
||||||
const response = await fetch(`${apiUrl}/${cameraSide}-preview`);
|
const response = await fetch(`${apiUrl}/${cameraSide}-preview`);
|
||||||
|
|||||||
Reference in New Issue
Block a user