From 171ad7f64a4b59b58a3ad73dbb64a9dcb6f73e96 Mon Sep 17 00:00:00 2001 From: Felicia Hwang <131253731+feliciahmq@users.noreply.github.com> Date: Thu, 18 Jul 2024 21:49:48 +0800 Subject: [PATCH] Edit: env variables --- .env | 7 +++++++ .firebase/hosting.ZGlzdA.cache | 2 +- src/lib/firebaseConfig.js | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..8a68ce1 --- /dev/null +++ b/.env @@ -0,0 +1,7 @@ +VITE_API_KEY=AIzaSyDHGTNVbJZlm3XADrOrVc2Yyuo1mve39XU +VITE_AUTH_DOMAIN=orbital-mechhub.firebaseapp.com +VITE_PROJECT_ID=orbital-mechhub +VITE_STORAGE_BUCKET=orbital-mechhub.appspot.com +VITE_MESSAGING_SENDER_ID=474236612145 +VITE_APP_ID=1:474236612145:web:1081c9ed758f1e32a8ef10 +VITE_MEASUREMENT_ID=G-ZNS909ZKGD diff --git a/.firebase/hosting.ZGlzdA.cache b/.firebase/hosting.ZGlzdA.cache index c756363..3654827 100644 --- a/.firebase/hosting.ZGlzdA.cache +++ b/.firebase/hosting.ZGlzdA.cache @@ -1,9 +1,9 @@ vite.svg,1719244795804,12b282beddfe94d624e7f1155761299a42ce1e3eac8053ebe3f38bd1fa04816c index.html,1719244795996,7b8da20548e475bbf081e357a41544a8f50bb0ecb04ebfd2d7e39556056748e1 assets/noImage-OHhGS89_.jpg,1719244795996,c08e0e94966c2304eec01fd0004060686945ba4a2d5f18fe1bb5ea3c7a3d6070 +assets/index-BRESNkaQ.js,1719244795996,d8698410d5f2ce99d4dee492aa22db0a40f7995222226504fc9f62ded80c3304 assets/index-BKQggYlr.css,1719244795996,eca7b4513ac40969503ec600debb1dee064e612f83bcb7d34f2a8557d7e5e5f8 assets/google-logo-DuXP27S6.png,1719244795996,60b6f749a9daafdc12e3cdbc6347b7e1ac0ab37e4e4008eb8d9de22601c43080 assets/defaultProfile-CQFvQvjp.jpg,1719244795996,41def0f58cef9a712b16aeb2c3097fcd6294cb660ffe544b2d7a51316d11cac0 assets/MechHub_logo-C0rnk5lx.png,1719244795996,2a01d2a0952a413ea22c345bfd5c6c03e5db69e32fccf856c4385b23d46ccf8c assets/MH_logo-BJcWcqoO.png,1719244795996,36d8d9ed49ed52bbda089a75b6a133cd70ceea8767f910585319ee4d9c57c769 -assets/index-BRESNkaQ.js,1719244795996,d8698410d5f2ce99d4dee492aa22db0a40f7995222226504fc9f62ded80c3304 diff --git a/src/lib/firebaseConfig.js b/src/lib/firebaseConfig.js index 019e4a2..d666f8a 100644 --- a/src/lib/firebaseConfig.js +++ b/src/lib/firebaseConfig.js @@ -3,6 +3,8 @@ import { getAuth } from "firebase/auth"; import { getFirestore } from "firebase/firestore"; import { getStorage } from "firebase/storage"; +console.log(import.meta.env.VITE_API_KEY); + const firebaseConfig = { apiKey: import.meta.env.VITE_API_KEY, authDomain: import.meta.env.VITE_AUTH_DOMAIN,