Firebase 在部署時總是要求洗掉 Firestore 索引。
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.
如何在本地專案目錄中包含索引?或者如果沒有,讓它永遠記住不要洗掉它們?
uj5u.com熱心網友回復:
您可以使用firebase firestore:indexes命令列印專案中的現有索引并更新檔案。然后,您可以使用以下命令更新索引:
firebase deploy --only firestore:indexes
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/524657.html
標籤:Google Cloud Collective 火力基地谷歌云火库
