小编Sai*_*alu的帖子

如何在 firebase 项目中设置 firebase_config 和 gcloud_project

我尝试运行 index.js 文件,它显示以下错误

C:\blog\functions>node index.js
{"severity": "WARNING", "message": "Warning, FIREBASE_CONFIG and GCLOUD_PROJECT environment variables are missing. Initializing firebase-admin will fail"}```

i know that 
Run Code Online (Sandbox Code Playgroud)

firebase功能:配置:设置someservice.key =“API密钥”someservice.id =“客户端ID”

this command will set environmental variables but what values should I set in environmental variables

I don't understand these lines from firebase documentation: (https://firebase.google.com/docs/functions/config-env)
process.env.GCLOUD_PROJECT: Provides the Firebase project ID
process.env.FIREBASE_CONFIG: Provides the following Firebase project config info:

should i set firebaseConfig details from project settings into environmental variables
Run Code Online (Sandbox Code Playgroud)

firebase google-cloud-functions

11
推荐指数
1
解决办法
9223
查看次数

标签 统计

firebase ×1

google-cloud-functions ×1