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)