From c2bfdd99aa4dcc8242eff008fba2b2e60eb88576 Mon Sep 17 00:00:00 2001 From: Carter Date: Thu, 24 Oct 2024 14:44:01 -0600 Subject: [PATCH] trying dev api url except actually with api in it --- .env | 2 +- package.json | 1 + src/providers/http.tsx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 39acc52..17ca41e 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -VITE_APP_API_URL=https://bxt-dev.adaptiveagriculture.ca/v1 +VITE_APP_API_URL=https://bxt-dev.api.adaptiveagriculture.ca/v1 #Auth0 VITE_AUTH0_CLIENT_DOMAIN=brandxtech.auth0.com diff --git a/package.json b/package.json index 128b530..43785f4 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "start": "vite", "start-local": "VITE_APP_API_URL=http://localhost:50052/v1 VITE_APP_WS_URL=ws://localhost:50052/v1/live VITE_APP_BILLING_URL=http://localhost:50053/v1 VITE_APP_RECLUSE_URL=http://localhost:50054/v1 VITE_APP_GITLAB_URL=http://localhost:50055/v1 vite", + "start-dev": "VITE_APP_API_URL=https://bxt-dev.adaptiveagriculture.ca/v1 VITE_APP_WS_URL=ws://bxt-dev.adapticeagriculture.ca/v1/live vite", "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", diff --git a/src/providers/http.tsx b/src/providers/http.tsx index 95bb57f..02d740b 100644 --- a/src/providers/http.tsx +++ b/src/providers/http.tsx @@ -37,6 +37,7 @@ export default function HTTPProvider(props: Props) { useEffect(() => { if (isAuthenticated) getAccessTokenSilently().then(t => { + console.log(t) setToken(t) }).finally(() => { setGotToken(true)