From fe47a9241b1c7a94fe87ec8db17811f229f8347e Mon Sep 17 00:00:00 2001 From: davydocsurg Date: Sun, 7 May 2023 20:32:05 +0100 Subject: [PATCH] chore: add User info component #619 --- src/services/firebase.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/services/firebase.js diff --git a/src/services/firebase.js b/src/services/firebase.js new file mode 100644 index 00000000..572ad473 --- /dev/null +++ b/src/services/firebase.js @@ -0,0 +1,21 @@ +import { getApp, initializeApp } from 'firebase/app'; +import { getFunctions, connectFunctionsEmulator } from 'firebase/functions'; +import { isProduction } from '../config'; + +const FIREBASE_CONFIG = { + apiKey: 'AIzaSyBDXPLmvu7YEagwdgp_W4uoZhCglbXrG6M', + authDomain: 'igbo-api-bb22d.firebaseapp.com', + projectId: 'igbo-api-bb22d', + storageBucket: 'igbo-api-bb22d.appspot.com', + messagingSenderId: '299917108135', + appId: '1:299917108135:web:e5053fceeba3155b624c82', + measurementId: 'G-YGGV667F2H', +}; + +initializeApp(FIREBASE_CONFIG); + +const functions = getFunctions(getApp()); +if (!isProduction) { + connectFunctionsEmulator(functions, 'localhost', 5005); + console.debug('Using Functions emulator: http://localhost:5005'); +}