Skip to content

Commit

Permalink
Update functionsEmulator.js
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenzlong committed Mar 9, 2018
1 parent b43ecca commit e62fe18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/functionsEmulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ FunctionsEmulator.prototype.start = function(shellMode) {
ensureDefaultCredentials();
return functionsConfig.getFirebaseConfig(options)
.then(function(result) {
process.env.FIREBASE_CONFIG = JSON.stringify(result);
process.env.FIREBASE_PROJECT = JSON.stringify(result); // To make pre-1.0 firebase-functions SDK work
firebaseConfig = JSON.stringify(result);
process.env.FIREBASE_CONFIG = firebaseConfig;
process.env.FIREBASE_PROJECT = firebaseConfig; // To make pre-1.0 firebase-functions SDK work
process.env.GCLOUD_PROJECT = projectId;
logger.debug('Starting @google-cloud/functions-emulator');
return controller.start();
Expand Down

0 comments on commit e62fe18

Please sign in to comment.