Hardcoded database property in Triggers configuration file?

I’m trying to create one realm app for each environment, all sharing the same source code.

My staging env has a different database name. I wonder if it’s possible to edit the hardcoded “database” and “service_name” properties from the triggers config file?

Maybe using the JSON expressions such as “%%environment.values.DATABASE” would be great.

For now, I think I will have to do some workaround and replace this value in the Github Actions workflow before pushing to Realm. But I really dont want to do that because I want to use the auto-deploy feature from Realm…

Have you found a solution for this?

I’ve asked something pretty similar here: Github deploy erases functions, schemas

Mongo support doesn’t seem to be very responsive.

The solution was to rename the database to have the same name for every cluster.

I have 3 clusters setup, one for each environment and it’s running fine.