Skip to content

Commit

Permalink
chore: add User info component nkowaokwu#619
Browse files Browse the repository at this point in the history
  • Loading branch information
davydocsurg committed Nov 24, 2023
1 parent 710c2e1 commit fe47a92
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/services/firebase.js
Original file line number Diff line number Diff line change
@@ -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');
}

0 comments on commit fe47a92

Please sign in to comment.