MCPcopy Create free account
hub / github.com/firebase/quickstart-js / checkConfig

Function checkConfig

ai/ai-react-app/src/App.tsx:12–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11 useEffect(() => {
12 const checkConfig = async () => {
13 // Dynamically import config to avoid potential early errors if placeholders exist
14 const { firebaseConfig } = await import("./config/firebase-config");
15 if (
16 firebaseConfig.apiKey === "YOUR_API_KEY" ||
17 !firebaseConfig.projectId
18 ) {
19 alert(
20 "WARNING: Firebase configuration in src/config/firebase-config.ts contains placeholder values. The app may not function correctly. Please replace them with your actual project configuration.",
21 );
22 }
23 };
24 checkConfig();
25 }, []);
26

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected