我是新的反应本土化,我一直在创建一个应用程序与Firebase为后端。我了解到,如果我只是在一个名为firebaseConfig.js的文件中复制并粘贴控制台页面中的firebase配置,那就太危险了。
我创建了一个.env文件并编写了一些局部变量(如果我认为它们是正确的),用变量替换firebase配置信息(如apiKey )。
我不知道哪里出了问题。
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { ge