Firebase ENV

1.Getting the key , in the firebase dashboard

Project Settings --> General --> Web API Key

2. Setting ENV in firebase project, in terminal

firebase functions:config:set webapi.key="THE API KEY"

3. using the ENV API key in the cloud function

const firebaseApiKey = functions.config().webapi.key; 

This will take effect on next deployment of the firebase app.

Last updated