trying dev api url except actually with api in it
This commit is contained in:
parent
4320c3e6d4
commit
c2bfdd99aa
3 changed files with 3 additions and 1 deletions
2
.env
2
.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
|
#Auth0
|
||||||
VITE_AUTH0_CLIENT_DOMAIN=brandxtech.auth0.com
|
VITE_AUTH0_CLIENT_DOMAIN=brandxtech.auth0.com
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue