MCPcopy Create free account
hub / github.com/firebase/codelab-friendlychat-web / getFirebaseConfig

Function getFirebaseConfig

web/src/firebase-config.js:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11};
12
13export function getFirebaseConfig() {
14 if (!config || !config.apiKey) {
15 throw new Error('No Firebase configuration object provided.' + '\n' +
16 'Add your web app\'s configuration object to firebase-config.js');
17 } else {
18 return config;
19 }
20}

Callers 2

index.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected