forked from nkowaokwu/igbo_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add User info component nkowaokwu#619
- Loading branch information
1 parent
0bc60d0
commit fa2b7b3
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
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
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'); | ||
} |