| 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 | |