Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. const functions = require('firebase-functions')
  2. const fs = require('fs')
  3.  
  4. let config = functions.config().env
  5.  
  6. if (process.env.NODE_ENV !== 'production') {
  7. if (fs.existsSync('./env.json')) {
  8. const env = require('./env.json')
  9.  
  10. config = env
  11. }
  12. }
  13.  
  14. module.exports = config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement