问题
According to Firebase documentation, environment configs can be set by running the command:
firebase functions:config:set someservice.key="THE API KEY" someservice.id="THE CLIENT ID"
However, I am wondering is there a way to import environment configs from a file e.g. from a JSON file configs.json
:
firebase functions:config:set configs.json
来源:https://stackoverflow.com/questions/45098388/firebase-cloud-functions-import-environment-configurations-from-file