Created
January 11, 2023 18:40
-
-
Save nicolasmontielf/17cbadbd9c869c21233eea33b8caa9a1 to your computer and use it in GitHub Desktop.
This file contains 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 the functions you need from the SDKs | |
import { initializeApp } from "firebase/app"; | |
import type { FirebaseOptions } from "firebase/app"; | |
const firebaseConfig: FirebaseOptions = { | |
apiKey: import.meta.env.VITE_FIREBASE_API_KEY, | |
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN, | |
databaseURL: import.meta.env.VITE_FIREBASE_DATABASE_URL, | |
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, | |
measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID, | |
}; | |
// Initialize Firebase | |
const app = initializeApp(firebaseConfig); | |
export default app; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment