存储环境变量的最简单、最多样的方法是在项目的根中使用.env文件。
现在,我面临的问题与Firebase有关,更确切地说,与Firebase的云函数有关。对于通过process.env.SOME_VARIABLE访问的所有环境变量,我将获得undefined,直到将.env文件复制到部署文件夹的时候为止。在我所有的(Angular with Angular Universal)应用程序中,我都可以访
Please ensure you have the latest firebase-functions SDK by running "npm i --save firebase-functions@Error: Firebase config variables are not available.Please use the latest version of the FirebaseCLI to deploy this function.at init (/Users