Blazor Server

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

Program.cs
...
Console.WriteLine($"This application is running on the environment: {app.Environment.EnvironmentName}");
// This application is running on the environment: Development
...

web.config
...
      <environmentVariables>
        <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="DevelopmentLocal"/>
      </environmentVariables>
...

This is the list of appsettings.json
image.png
Was this page helpful?