How to get Firebase Project Name or ID from Cloud Function

后端 未结 6 1397
别跟我提以往
别跟我提以往 2021-01-01 12:25

I am using Cloud Functions and want to get the project name from within one of my Javascript server files. I know that value is stored in the .firebaserc, but I don\'t thin

6条回答
  •  离开以前
    2021-01-01 12:41

    Thank you @Frank. The answer is: process.env.GCLOUD_PROJECT.
    I'm not sure where the variable process comes from, but this does work to get the project name.

提交回复
热议问题