How do I programmatically know which run-mode the instance is running? I created a custom tag that provides the config depending on the instance run-mode, but I can not dete
You can also try this:
RunModeService runModeService = getSlingScriptHelper().getService(RunModeService.class); author = runModeService.isActive("author");