The settings for Firebase deployment - Firestore, Hosting, and Cloud Functions - are in the firebase.json file. Does anyone know a way to have 2 separate firebase.json files - one for test and one for prod? Or use variables which are configurable? My project is Angular so my first idea was to use the environments variables which are referenced during the build process - test and prod. Is this possible?
My specific goal is to use a different set of firebase.rules for test and production. I want to specify a firebase.prod.rules file for example when deploying to production. This technique can be useful for changing firebase indexes file or hosting test vs prod project differences for which there are many configuration options available in the firebase.json file.
"firestore": {
"indexes": "firestore.indexes.json",
"rules": "firestore.rules"
}