Last active
October 29, 2023 02:42
-
-
Save codigoconjuan/893154c5bd6d568c21bbe2b93afd285d to your computer and use it in GitHub Desktop.
Configuración de Firebase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VITE_FIREBASE_API_KEY = | |
VITE_FIREBASE_AUTH_DOMAIN = | |
VITE_FIREBASE_PROJECT_ID = | |
VITE_FIREBASE_STORAGE_BUCKET = | |
VITE_FIREBASE_MESSAGING_SENDER_ID = | |
VITE_FIREBASE_APP_ID = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { initializeApp } from 'firebase/app' | |
const firebaseConfig = { | |
apiKey: import.meta.env.VITE_FIREBASE_API_KEY, | |
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN, | |
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID, | |
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET, | |
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID, | |
appId: import.meta.env.VITE_FIREBASE_APP_ID, | |
} | |
export const firebaseApp = initializeApp(firebaseConfig) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment