It is possible to define environment specific variables for Firestore Security rules? Just like it is possible for Firebase Cloud Functions.
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.