Solved
Detect instance runmode programmatically in AEM as cloud service
Hi All,
Is there any alternative to detect run-mode of instance in AEM as cloud service as slingSettingsService shows as deprecated?
The use case is to execute code only on author or publish instances but not both.
Thanks,
Ram
