Skip to content

Instantly share code, notes, and snippets.

@nicolasmontielf
Created January 11, 2023 18:40
Show Gist options
  • Save nicolasmontielf/17cbadbd9c869c21233eea33b8caa9a1 to your computer and use it in GitHub Desktop.
Save nicolasmontielf/17cbadbd9c869c21233eea33b8caa9a1 to your computer and use it in GitHub Desktop.
// 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