If the Run Modes where set up accordingly at your environments, e.g. development, production, etc. (https://docs.adobe.com/content/help/en/experience-manager-64/deploying/configuring/configure-runmodes.html), you can get the current Run Mode at backend and it will contain the corresponding value, su...