mirror of
https://github.com/Floriansylvain/SpaceMessenger.git
synced 2026-08-19 11:43:22 +02:00
Moved firebase secrets from .env to json file
This commit is contained in:
@@ -28,3 +28,4 @@ coverage
|
|||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
.env
|
.env
|
||||||
|
.firebase
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"apiKey":"AIzaSyDVyP3WELYiQL8OBGFaLpCkZr8gA9cVu-4",
|
||||||
|
"authDomain":"spacemessenger-fsylvain.firebaseapp.com",
|
||||||
|
"projectId":"spacemessenger-fsylvain",
|
||||||
|
"storageBucket":"spacemessenger-fsylvain.appspot.com",
|
||||||
|
"messagingSenderId":"103202352459",
|
||||||
|
"appId":"1:103202352459:web:c41f6a1e35492bbd8e4cce"
|
||||||
|
}
|
||||||
@@ -1,14 +1,6 @@
|
|||||||
import { initializeApp } from "@firebase/app"
|
import { initializeApp } from "@firebase/app"
|
||||||
import { getFirestore } from "@firebase/firestore"
|
import { getFirestore } from "@firebase/firestore"
|
||||||
|
import firebaseConfig from "@/assets/firebase.api.json"
|
||||||
const firebaseConfig = {
|
|
||||||
apiKey: import.meta.env.VITE_apiKey,
|
|
||||||
authDomain: import.meta.env.VITE_authDomain,
|
|
||||||
projectId: import.meta.env.VITE_projectId,
|
|
||||||
storageBucket: import.meta.env.VITE_storageBucket,
|
|
||||||
messagingSenderId: import.meta.env.VITE_messagingSenderId,
|
|
||||||
appId: import.meta.env.VITE_appId,
|
|
||||||
}
|
|
||||||
|
|
||||||
const app = initializeApp(firebaseConfig)
|
const app = initializeApp(firebaseConfig)
|
||||||
export const db = getFirestore(app)
|
export const db = getFirestore(app)
|
||||||
Reference in New Issue
Block a user