diff --git a/.env b/.env index 37dc285..eac479f 100644 --- a/.env +++ b/.env @@ -1,4 +1,5 @@ VITE_BASEURL=http://192.168.75.11/ +VITE_CAM_BASE=http://100.72.72.70:8080 VITE_FOLKESTONE_BASE=http://100.116.253.81 VITE_TESTURL=http://100.82.205.44/SightingListRear/sightingSummary?mostRecentRef=-1 VITE_OUTSIDE_BASEURL=http://100.82.205.44/api diff --git a/src/pages/Dashboard.tsx b/src/pages/Dashboard.tsx index 3f3a854..a434b32 100644 --- a/src/pages/Dashboard.tsx +++ b/src/pages/Dashboard.tsx @@ -2,15 +2,19 @@ import FrontCameraOverviewCard from "../components/FrontCameraOverview/FrontCame import RearCameraOverviewCard from "../components/RearCameraOverview/RearCameraOverviewCard"; import SightingHistoryWidget from "../components/SightingsWidget/SightingWidget"; import { SightingFeedProvider } from "../context/providers/SightingFeedProvider"; - +import { CAM_BASE } from "../utils/config"; const Dashboard = () => { // const AGX_url = import.meta.env.VITE_AGX_BOX_URL; // const AGX_rear_url = import.meta.env.VITE_AGX_BOX_REAR_UR; - const test = import.meta.env.VITE_LOCAL; - const testFront = import.meta.env.VITE_LOCAL_FRONT; + // const test = import.meta.env.VITE_LOCAL; + const dev_REAR_URL = `${CAM_BASE}/SightingListRear/sightingSummary?mostRecentRef=`; + const dev_FRONT_URL = `${CAM_BASE}/SightingListFront/sightingSummary?mostRecentRef=`; + // const testFront = import.meta.env.VITE_LOCAL_FRONT; + console.log(CAM_BASE); + return (