blazoraspnetcore-environment

Blazor WASM Environment is always Production


I have a .Net 8 Blazor Web App and the client's builder.HostEnvironment.Environment is always (locally and on Azure) set to 'Production' even if the Server builder.Environment is set to 'Development'

Why? I don't know about anywhere in the client project where I set it to 'Production'.


Solution

  • Using 'DebugLocal' instead of 'Debug' solved it.

    enter image description here