• Blog
  • Documentation
  • Courses
  • Changelog
  • AI Starters
  • UI Kit
  • FAQ
  • Supamode
    New
  • Pricing

Launch your next SaaS in record time with Makerkit, a React SaaS Boilerplate for Next.js and Supabase.

Makerkit is a product of Makerkit Pte Ltd (registered in the Republic of Singapore)Company Registration No: 202407149CFor support or inquiries, please contact us

About
  • FAQ
  • Contact
  • Verify your Discord
  • Consultation
  • Open Source
  • Become an Affiliate
Product
  • Documentation
  • Blog
  • Changelog
  • UI Blocks
  • Figma UI Kit
  • AI SaaS Starters
License
  • Activate License
  • Upgrade License
  • Invite Member
Legal
  • Terms of License
    • Environment Variables
    • Security Rules

Publish the Firebase Security Rules variables before going to production

When running the Firebase Emulator, you can update your Firebase Firestore and Storage security rules by changing the relative files firestore.rules and storage.rules.

Before deploying your application to your users, you need to make sure that you're also publishing the security rules from your Firebase Console.

Storage Security Rules

To publish your Firebase Storage security rules, navigate to the Firebase Console.

From the main sidebar, click on "Storage". Afterward, click on the "Rules" tab:

Afterward, paste the content from storage.rules to the text editor, and click "Publish".

Firestore Security Rules

To update your Firestore Security rules, follow the same steps as for the Storage rules explained above.

Of course, the only difference is navigating to the Firestore tab, and choosing the content of firestore.rules.