Home > other >  Would you like to delete these indexes? Selecting no will continue the rest of the deployment
Would you like to delete these indexes? Selecting no will continue the rest of the deployment

Time:11-01

Firebase always requests to delete firestore indexes when deploying.

The following indexes are defined in your project but are not present in your firestore indexes file:
    (users) -- (role,ASCENDING) (name,ASCENDING)
? Would you like to delete these indexes? Selecting no will continue the rest of the deployment.

How can I include the indexes in my local project directory? or if not, make it always remember to not delete them?

CodePudding user response:

You can use firebase firestore:indexes command to print existing indexes in your project and update the file. You can then update the indexes with:

firebase deploy --only firestore:indexes
  • Related