Skip to content

Commit

Permalink
Allow deploying firestore without indexes
Browse files Browse the repository at this point in the history
Fixes #493
  • Loading branch information
samtstern committed Oct 5, 2017
1 parent 945d6cb commit c2e33bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/deploy/firestore/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ function _prepareRules(context, options) {
}

function _prepareIndexes(context, options) {
return context.firestoreIndexes ? firestoreIndexes.prepare(context, options) : RSVP.resolve();
if (!(context.firestoreIndexes && options.config.get('firestore.indexes'))) {
return RSVP.resolve();
}

return firestoreIndexes.prepare(context, options);
}

module.exports = function(context, options) {
Expand Down

0 comments on commit c2e33bb

Please sign in to comment.