Created
February 26, 2018 02:32
-
-
Save techlab23/7f04d718ccc40268d2e407b5201a9e5f to your computer and use it in GitHub Desktop.
Dev environment file used at build time to use firebase config variables from either process.env or .env file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const merge = require('webpack-merge') | |
const prodEnv = require('./prod.env') | |
const envConf = require('dotenv').config() | |
module.exports = merge(prodEnv, { | |
NODE_ENV: '"development"', | |
API_KEY: JSON.stringify(process.env.API_KEY || envConf.API_KEY) , | |
AUTH_DOMAIN: JSON.stringify(process.env.AUTH_DOMAIN || envCONF.AUTH_DOMAIN) , | |
DATABASE_URL: JSON.stringify(process.env.DATABASE_URL || envConf.DATABASE_URL) , | |
PROJECT_ID: JSON.stringify(process.env.PROJECT_ID || envConf.PROJECT_ID) , | |
STORAGE_BUCKET: JSON.stringify(process.env.STORAGE_BUCKET || envConf.STORAGE_BUCKET) , | |
MESSENGER_SENDER_ID: JSON.stringify(process.env.MESSENGER_SENDER_ID || envConf.MESSENGER_SENDER_ID) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment