Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

store environment variables in firebase functions

$ cd project_directory
$ cd functions
$ firebase functions:config:set api_key1="YOUR_API_KEY1" api_key2="YOUR_API_KEY2"

// Accessing the Keys in Code

const functions = require('firebase-functions');

const api_key1  = functions.config().api_key1;
const api_key2  = functions.config().api_key2;
Comment

PREVIOUS NEXT
Code Example
Shell :: android/gradlew EACCES error 
Shell :: install open jdk 8 mac homebrew 
Shell :: linux change uid 
Shell :: chmod chown 
Shell :: how to make ubuntu use all available disk 
Shell :: ubuntu restart systemctl 
Shell :: set default editor bash 
Shell :: copy to clipboard while ssh into another terminal 
Shell :: git cherry pick many commits 
Shell :: deploy docker to heroku 
Shell :: docker proxy ubuntu 
Shell :: How to create and extract an archive or .tar file using linux commands 
Shell :: microphone auto adjusting ubuntu 
Shell :: how to install all your pipenv packages 
Shell :: how to install and connect to ftp on ubuntu 18 
Shell :: pdf file 30mb 
Shell :: macos terminal delete file 
Shell :: git clone does not show all branches 
Shell :: what is group in linux? 
Shell :: how to keep track of github profile views 
Shell :: git checkout filename 
Shell :: uninstall en_web_core md 
Shell :: Install Pop Shell Window Tiling Extension on Ubuntu 20.04 
Shell :: How to install 4k video Downloader YouTube on Ubuntu Linux 
Shell :: Exception: No Linux desktop project configured. 
Shell :: build .so file 
Shell :: Install Caddy on Debian 
Shell :: show seconds in ubuntu 20.04 
Shell :: ubuntu command line weather 
Shell :: updated git but still showing old version 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =