1) Go to your firebase project.
2) Select Cloud Firestore.
3) Select Rules.
You will see something like below.
Change it as follows, Note: mind the rules_version and ensure you are reflecting the correct rules_version.
4) Publish.
That's it, you are now switched to Production mode.
Thanks.