Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

enviroment variables in 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 :: where to store env file in firebase functions 
Shell :: firebase realtime database delete all data 
Shell :: grep second line 
Shell :: kubectl restart recreate pod 
Shell :: materila ui 
Shell :: .gitignore add directory 
Shell :: git clone without folder 
Shell :: install kubernetes linux 
Shell :: How do I check out a remote Git branch? 
Shell :: git diff 
Shell :: exit branch git 
Shell :: linux yaml validator command line 
Shell :: fstab sshfs 
Shell :: script for restart redis service automatically 
Shell :: crear una aplicacion con angular cli 
Shell :: terraform apply target 
Shell :: install intellij 
Shell :: mac format drive for windows 
Shell :: how to remove a vm in proxmox from terminal 
Shell :: W: GPG error: http://packages.ros.org/ros/ubuntu xenial InRelease: The following signatures were invalid: KEYEXPIRED 1622248854 
Shell :: start vagrant box 
Shell :: find all cron jobs in linux 
Shell :: debian build with ccache 
Shell :: ros dep install 
Shell :: Linkar repo en github 
Shell :: compress folder raspberry 
Shell :: linux command check cpu type amd or not 
Shell :: Openzeppelin for Truffle install 
Shell :: run katalon docker image 
Shell :: flutter add const auto 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =