Search code examples
google-cloud-firestorefirebase-security

Firestore security rules and environment variables


It is possible to define environment specific variables for Firestore Security rules? Just like it is possible for Firebase Cloud Functions.


Solution

  • No, it is not possible out of the box as of now (Jan 6th 2023). I had to write a custom webpack plugin for this purpose.