Solved
How to find from OsgiConfiguration if it is a Preview instance?
No text available
You may refer to the community blog: https://medium.com/slalom-technology/how-to-use-environment-variables-in-adobe-experience-manager-aem-as-cloud-service-1e9145d78c2c how you can set environment variable using CM API and use in OSGI config.
Thanks
Wasil
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.