Updates environment configurations
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
VITE_API_URL=https://localhost:5001/
|
||||
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
|
||||
@@ -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
5
.env.production
Normal 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
3
.gitignore
vendored
@@ -33,7 +33,4 @@ coverage
|
||||
*.tsbuildinfo
|
||||
|
||||
# .Env files
|
||||
.env.development
|
||||
.env.production
|
||||
.env
|
||||
/localhost.csr
|
||||
|
||||
@@ -4,8 +4,6 @@ import {useAuthStore} from "@/stores/authStore.js"
|
||||
export function useClient() {
|
||||
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({
|
||||
baseURL: import.meta.env.VITE_API_URL,
|
||||
timeout: 10000,
|
||||
|
||||
Reference in New Issue
Block a user