Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Did you add the episerver:EnvironmentName keys to each of your Integration, Preproduction and Production web configs?
Hello,
We added code from this document https://world.optimizely.com/documentation/developer-guides/archive/dxp-cloud-services/development-considerations/environment-configurations/ to know the environment during runtime and act according but that's not working as expected. Just to test if we change the environment name from Azure App Service it's not working as expected.
private static bool GetAzureEnvironmentConfiguration()
{
var appSettings = ConfigurationManager.AppSettings;
var environmentName = appSettings["episerver:EnvironmentName"];
bool isIntegrationOrPreproduction = false;
if (environmentName == null || environmentName.Equals("Integration") || environmentName.Equals("Preproduction"))
{
isIntegrationOrPreproduction = true;
}
return isIntegrationOrPreproduction;
}
This means code can't integrate with Azure app service during run time? Can anybody help with this issue.
Thanks,
Deepa