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.