-werners-
Esteemed Contributor III

you could also store the environment name in a config file f.e. in the databricks filestore.

These config files can also be managed by ci/cd.
tbh my preferred way of working lately.