From 8dba5fe9d9b2b509db6df27cc7f29463d725e25b Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Tue, 14 Jan 2025 02:04:05 -0500 Subject: [PATCH] Updates environment configurations --- .env.development | 2 +- .env.dist | 4 ---- .env.production | 5 +++++ .gitignore | 3 --- src/plugins/api.js | 2 -- 5 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 .env.dist create mode 100644 .env.production diff --git a/.env.development b/.env.development index 070eaf3..eea1831 100644 --- a/.env.development +++ b/.env.development @@ -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 \ No newline at end of file diff --git a/.env.dist b/.env.dist deleted file mode 100644 index f6376e0..0000000 --- a/.env.dist +++ /dev/null @@ -1,4 +0,0 @@ -VITE_API_URL=https: -VITE_STRIPE_API_KEY= -VITE_GOOGLE_CLIENT_ID= -VITE_FACEBOOK_APP_ID \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..9bcf9ae --- /dev/null +++ b/.env.production @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index ac4f4bd..3003aa1 100644 --- a/.gitignore +++ b/.gitignore @@ -33,7 +33,4 @@ coverage *.tsbuildinfo # .Env files -.env.development -.env.production -.env /localhost.csr diff --git a/src/plugins/api.js b/src/plugins/api.js index 462ef63..a55b50b 100644 --- a/src/plugins/api.js +++ b/src/plugins/api.js @@ -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,