-
import { initializeApp } from 'firebase/app'; import { initializeAuth } from 'firebase/auth'; // Firebase JS SDK work with expo web // for more information: https://docs.expo.dev/guides/using-firebase/#using-firebase-js-sdk // Initialize Firebase const firebaseConfig = { apiKey: process.env.EXPO_PUBLIC_FIREBASE_API_KEY, authDomain: process.env.EXPO_PUBLIC_FIREBASE_AUTH_DOMAIN, // databaseURL: process.env.EXPO_PUBLIC_FIREBASE_DATABASE_URL, projectId: process.env.EXPO_PUBLIC_FIREBASE_PROJECT_ID, storageBucket: process.env.EXPO_PUBLIC_FIREBASE_STORAGE_BUCKET, messagingSenderId: process.env.EXPO_PUBLIC_FIREBASE_MESSAGING_SENDER_ID, appId: process.env.EXPO_PUBLIC_FIREBASE_APP_ID, measurementId: process.env.EXPO_PUBLIC_FIREBASE_MEASUREMENT_ID, }; let firebaseApp: ReturnType; let auth: ReturnType; try { firebaseApp = initializeApp(firebaseConfig); auth = initializeAuth(firebaseApp); auth.useDeviceLanguage(); } catch (error) { console.error("Error initializing Firestore:", (error as any).message); console.error("Error Stack:", (error as any).stack); console.error("Error Details:", error); } export { auth, firebaseApp }; // To apply the default browser preference instead of explicitly setting it. // For more information on how to access Firebase in your project, // see the Firebase documentation: https://firebase.google.com/docs/web/setup#access-firebase
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.