0

We have two Firebase project, one for developing another production project. We use cloud functions. In one cloud functions, you need to use service-account-credentials.json. The problem is how can I make this function take data from service-account-credentials-dev.json when it proceeds to the development project, and when on production, then from service-account-credentials-prod.json?

I know about the environment, but as I understand, this feature does not allow you to download the json file for a particular project.

Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115

1 Answers1

0

I found the answer to my question here. Doug Stevenson wrote "There is not. You could write your own program to read the json and convert that into a series of firebase CLI commands that get the job done"

Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115