Firebase

Development Platform for Cross-Plattform applications. #framework

Environment variables in Cloud Functions

Create a .env file for holding variables. To differentiate between environments such as DEV or PROD, create files such as .env.dev and .env.prod.

Store secret variables in the Google Secret Store.

# define value in the secret manager
firebase functions:secrets:set SUPER_SECRET

Scope these variables to functions with the runWith({ secrets: ['SUPER_SECRET'] }) config options. And access them with process.env.SUPER_SECRET.

Source: Firebase video