A
A
Abra Kadabra2021-12-20 19:38:59
Command line
Abra Kadabra, 2021-12-20 19:38:59

When can firebase.config differ from functions:functions:get?

Set the environment variables as indicated in the docs:

firebase functions:config:set someservice.key="THE API KEY" someservice.id="THE CLIENT ID"


When I call functions.config(), then the variables are not taken from the config (except for one ugly key). However, when I call functions:config:get from cli, an object with the necessary keys is returned.

How can I set the variables correctly so that I can get them in the node from functions.config() ? The latest version of the functions (with the correct keys) has been deployed, but functions.config() has not been updated.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Abra Kadabra, 2021-12-28
@Jmaster

If anyone is interested, then the runtime config is taken from the local file, and the CLI gets the config from the deployed functions.
This command pulls the remote config into the local .runtimeconfig:

firebase functions:config:get > .runtimeconfig.json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question