mirror of
https://github.com/zhigang1992/firebase-tools.git
synced 2026-01-12 22:47:24 +08:00
use _.cloneDeep to get the current environment
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user