Skip to content

Commit

Permalink
Reset global functions deploy variables on each deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcnellis committed Oct 7, 2020
1 parent 97e5bab commit 72569d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/deploy/functions/release.js
Expand Up @@ -127,6 +127,12 @@ module.exports = function(context, options, payload) {

var projectId = context.projectId;
var sourceUrl = context.uploadUrl;

// Reset module-level variables to prevent duplicate deploys when using firebase-tools as an import.
timings = {};
deployments = [];
failedDeployments = [];

var appEngineLocation = getAppEngineLocation(context.firebaseConfig);
// Used in CLI releases v3.4.0 to v3.17.6
var legacySourceUrlTwo =
Expand Down

0 comments on commit 72569d8

Please sign in to comment.