How do I turn my Firebase Cloud Firestore project from test mode into Production mode?

This Article is posted by seven.srikanth at 9/17/2020 9:44:06 AM



1) Go to your firebase project.
2) Select Cloud Firestore.
3) Select Rules.
 
 You will see something like below.

    rules_version = '2';
    service cloud.firestore {
      match /databases/{database}/documents {
        match /{document=**} {
          allow read, write: if
              request.time < timestamp.date(2020, 10, 6);
        }
      }
    }
   Change it as follows, Note: mind the rules_version and ensure you are reflecting the correct rules_version.
  

  rules_version = '2';
    service cloud.firestore {
      match /databases/{database}/documents {
        match /{document=**} {
          allow read, write: if false;
        }
      }
    }
4) Publish.
That's it, you are now switched to Production mode.  Thanks.

Tags: Firebase Cloud Firestore project








0 Comments
Login to comment.
Recent Comments

Be the first to Comment. You can ask a Query or Share your toughts or Just say thanks.


© 2018 - Fluttercentral | Email to me - seven.srikanth@gmail.com