trying dev api url except actually with api in it

This commit is contained in:
Carter 2024-10-24 14:44:01 -06:00
parent 4320c3e6d4
commit c2bfdd99aa
3 changed files with 3 additions and 1 deletions

2
.env
View file

@ -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 #Auth0
VITE_AUTH0_CLIENT_DOMAIN=brandxtech.auth0.com VITE_AUTH0_CLIENT_DOMAIN=brandxtech.auth0.com

View file

@ -6,6 +6,7 @@
"scripts": { "scripts": {
"start": "vite", "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-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", "build": "tsc -b && vite build",
"lint": "eslint .", "lint": "eslint .",
"preview": "vite preview", "preview": "vite preview",

View file

@ -37,6 +37,7 @@ export default function HTTPProvider(props: Props) {
useEffect(() => { useEffect(() => {
if (isAuthenticated) getAccessTokenSilently().then(t => { if (isAuthenticated) getAccessTokenSilently().then(t => {
console.log(t)
setToken(t) setToken(t)
}).finally(() => { }).finally(() => {
setGotToken(true) setGotToken(true)