Sign in to Community
Sign in to view all badges
How to set environmental variables?
Such as webservice url variable in development and production.
@mohamedn4455443 As mentioned by @Andrei_Dantsou , setup the OSGI configuration and use the following code in case of getting runmodes in model or component class: @Reference private static SlingSettingsService slingSettingsService;slingSettingsService.getRunModes().contains("prod") ---> For productionslingSettingsService.getRunModes().contains("dev") ----> for developmentThanks,Nikhil