From 41da85620d51925ffed0681ec554b1846a8a6579 Mon Sep 17 00:00:00 2001 From: Toba Ojo Date: Fri, 19 Sep 2025 13:15:38 +0100 Subject: [PATCH] updated loclahosr --- .env | 7 ++++++- src/components/UI/Header.tsx | 4 ++-- src/pages/Dashboard.tsx | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 93a03e4..cf05986 100644 --- a/.env +++ b/.env @@ -11,4 +11,9 @@ VITE_AGX_BOX_REAR_URL=http://192.168.0.90:8080/SightingListRear/sightingSummary? VITE_AGX=http://100.72.72.70:8080/SightingListRear/sightingSummary?mostRecentRef= VITE_AGX_FRONT=http://100.72.72.70:8080/SightingListFront/sightingSummary?mostRecentRef= -VITE_AGX_FRONT_BASE=http://100.72.72.70:8080/ \ No newline at end of file +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_BASE=http://localhost:8080/ \ No newline at end of file diff --git a/src/components/UI/Header.tsx b/src/components/UI/Header.tsx index ad3fc8a..ba0c068 100644 --- a/src/components/UI/Header.tsx +++ b/src/components/UI/Header.tsx @@ -98,8 +98,8 @@ export default function Header() { {/* Right: Texts stacked + icons */} -
-
+
+

Local: {localStr}

UTC: {utcStr}

diff --git a/src/pages/Dashboard.tsx b/src/pages/Dashboard.tsx index c30c639..3f3a854 100644 --- a/src/pages/Dashboard.tsx +++ b/src/pages/Dashboard.tsx @@ -6,8 +6,8 @@ import { SightingFeedProvider } from "../context/providers/SightingFeedProvider" 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_AGX; - const testFront = import.meta.env.VITE_AGX_FRONT; + const test = import.meta.env.VITE_LOCAL; + const testFront = import.meta.env.VITE_LOCAL_FRONT; return (