Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

store environment variables firebase

$ 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 :: store environment variables firebase functions 
Shell :: docker build without cache 
Shell :: install open jdk 8 mac homebrew 
Shell :: how to deploy heroku app 
Shell :: powershell -file 
Shell :: how to encrypt and decrypt a text file using openssl rsa public and private keys 
Shell :: fish set environment variable 
Shell :: how to create a branch in git 
Shell :: assign permission to files and folder ubuntu separate 
Shell :: install node on fish shell 
Shell :: how to leave a directory on terminal 
Shell :: give sudo permission to vim ubuntu 
Shell :: atom vs sublime 
Shell :: push to multiple repos git 
Shell :: launch sublime from terminal 
Shell :: linux command to copy file 
Shell :: see file from previous commit git 
Shell :: write in a file linux 
Shell :: linux vi 
Shell :: Current user cannot act as service account 881087019435-compute@developer.gserviceaccount.com 
Shell :: transfer git repo from gitlab to github 
Shell :: installing kubernetes on ubuntu 20.04 
Shell :: how to create matrix in git bash 
Shell :: set up django-lint 
Shell :: ufw enable no disturb 
Shell :: cast my phone screen on laptop in arch linux 
Shell :: how to install skimage in pycharm command 
Shell :: raspberry pi remove script from startup 
Shell :: alter package body compile 
Shell :: /etc/apt/sources.list 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =