📜  以后如何将firebase从测试模式更改为生产模式-无论代码示例

📅  最后修改于: 2022-03-11 14:57:45.747000             🧑  作者: Mango

代码示例1
Copy the code below and ensure you're giving the correct rule version. You've now switched to production mode

rules_version = '2';
    service cloud.firestore {
      match /databases/{database}/documents {
        match /{document=**} {
          allow read, write: if false;
        }
      }
    }