Firebase ENV
1.Getting the key , in the firebase dashboard
Project Settings --> General --> Web API Key
2. Setting ENV in firebase project, in terminal
1
firebase functions:config:set webapi.key="THE API KEY"
Copied!
3. using the ENV API key in the cloud function
1
const firebaseApiKey = functions.config().webapi.key;
Copied!
How does one set private environment variables on Firebase hosting?
Stack Overflow
This will take effect on next deployment of the firebase app.
Copy link