Skip to content

Commit

Permalink
use _.cloneDeep to get the current environment
Browse files Browse the repository at this point in the history
  • Loading branch information
dwatrous committed Nov 29, 2018
1 parent 3cfe473 commit ffcde09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parseTriggers.js
Expand Up @@ -10,7 +10,7 @@ var TRIGGER_PARSER = path.resolve(__dirname, "./triggerParser.js");

module.exports = function(projectId, sourceDir, configValues, firebaseConfig) {
return new Promise(function(resolve, reject) {
var env = process.env;
var env = _.cloneDeep(process.env);
env.GCLOUD_PROJECT = projectId;
if (!_.isEmpty(configValues)) {
env.CLOUD_RUNTIME_CONFIG = JSON.stringify(configValues);
Expand Down

0 comments on commit ffcde09

Please sign in to comment.