yes, you need to use below js to get runmode: Read AEM runmodes from Sightly · GitHub (here you can find it in detail) Lets say it runmode.jsvar SlingSettingsService = Packages.org.apache.sling.settings.SlingSettingsService; use(function () { // Get runmodes and transform them into an object t...