I have a Blazor Server application with a set of custom environment variables, I am trying to set the environment into DevelopmentLocal on the web.config file, however It stays on the Development environment
This is the list of appsettings.json
Program.cs
...Console.WriteLine($"This application is running on the environment: {app.Environment.EnvironmentName}");// Output: This application is running on the environment: Development// Expected: This application is running on the environment: DevelopmentLocal...
web.config
...<environmentVariables><environmentVariable name="ASPNETCORE_ENVIRONMENT" value="DevelopmentLocal"/></environmentVariables>...