Runmode library not working in AEM cloud
Hi,
I tried to check the runmode in AEM in order to add the script accordingly to PROD and non-PROD environments. When I try to execute the code both the script is displaying in the PROD and non-PROD environment. Below is the code added:
Runmode.Java :
import com.adobe.acs.commons.util.ModeUtil;
public boolean isProduction() {
return ModeUtil.isRunmode("prd");
}
component.html :