Updates environment configurations

This commit is contained in:
2025-01-14 02:04:05 -05:00
parent ac39f6aa76
commit 8dba5fe9d9
5 changed files with 6 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
VITE_API_URL=https://localhost:5001/ VITE_API_URL=https://localhost:5001/
VITE_STRIPE_API_KEY=pk_test_51OoveVDrRyqXtNdB2st1NgA8WQA9rhgGaf3q7bCpAOoQyyRS30HMCzGeHba7meVGCSPfb1BVWmOTmFOcr9MkKf5H00bLu5MqsS VITE_STRIPE_API_KEY=pk_test_51OoveVDrRyqXtNdB2st1NgA8WQA9rhgGaf3q7bCpAOoQyyRS30HMCzGeHba7meVGCSPfb1BVWmOTmFOcr9MkKf5H00bLu5MqsS
VITE_GOOGLE_CLIENT_ID=468391910875-78sfopq1t12ulrv4f5vj227j45guuj66.apps.googleusercontent.com VITE_GOOGLE_CLIENT_ID=213344094492-9dbaet2gaschju3hj1sgv1umk0qpd833.apps.googleusercontent.com
VITE_FACEBOOK_APP_ID VITE_FACEBOOK_APP_ID

View File

@@ -1,4 +0,0 @@
VITE_API_URL=https:
VITE_STRIPE_API_KEY=
VITE_GOOGLE_CLIENT_ID=
VITE_FACEBOOK_APP_ID

5
.env.production Normal file
View File

@@ -0,0 +1,5 @@
VITE_API_URL=https://hutopy-backend-api.azurewebsites.net
VITE_STRIPE_API_KEY=pk_test_51OoveVDrRyqXtNdB2st1NgA8WQA9rhgGaf3q7bCpAOoQyyRS30HMCzGeHba7meVGCSPfb1BVWmOTmFOcr9MkKf5H00bLu5MqsS
VITE_GOOGLE_CLIENT_ID=213344094492-7c83lqoh7mnjgadpeqo2lcs1krhbsnnd.apps.googleusercontent.com
AZURE_SUBSCRIPTION_ID=46feb20f-3ae1-495a-830b-a31f7b76483d
AZURE_TENANT_ID=2f389c0d-131d-4de4-a7ac-03bab7e7a04f

3
.gitignore vendored
View File

@@ -33,7 +33,4 @@ coverage
*.tsbuildinfo *.tsbuildinfo
# .Env files # .Env files
.env.development
.env.production
.env
/localhost.csr /localhost.csr

View File

@@ -4,8 +4,6 @@ import {useAuthStore} from "@/stores/authStore.js"
export function useClient() { export function useClient() {
if (!import.meta.env.VITE_API_URL) throw new Error("VITE_API_URL is not provided") if (!import.meta.env.VITE_API_URL) throw new Error("VITE_API_URL is not provided")
// You create a .env.development file and a .env file
// depending on the environment, the correct file will be used
const api = axios.create({ const api = axios.create({
baseURL: import.meta.env.VITE_API_URL, baseURL: import.meta.env.VITE_API_URL,
timeout: 10000, timeout: 10000,