"firebase-tools": "3.12.0"
"firebase-admin": "5.2.1",
"firebase-functions": "0.6.3",
On a few occasions, I've ran firebase functions:config:get > .runtimeconfig.json
outside of my functions folder.
I'm swapping between a few different projects, and forgetting to cd into /functions
Then getting confused why my config is wrong or doesn't exist after local deploying in shell
It's probably more of a feature request than a bug:
If firebase experimental:functions:shell could warn about .runtimeconfig.json if it sees there's one on the wrong folder level, that would be helpful
firebase experimental:functions:shell essentially does exactly what it should be doing.
Supporting config automatically during emulation without you having to run "firebase functions:config:get > .runtimeconfig.json" is on our roadmap. Thanks for the validation!
Any update on timeline / estimate here? Been running into this bunch lately :/
Thanks!
I recommend editing the "shell" script in your functions/package.json to be:
firebase functions:config:get > .runtimeconfig.json && firebase functions:shell
That way you can just run "npm run shell`
Closing for inactivity.
Most helpful comment
Supporting config automatically during emulation without you having to run "firebase functions:config:get > .runtimeconfig.json" is on our roadmap. Thanks for the validation!