Editorial question61.2K views772 votes0 answers1,326 following
AI-generatedWhere should the blazor-environment value be injected for immutable Blazor WebAssembly builds?
In a Blazor WebAssembly standalone deployment, the client resolves its host environment from the blazor-environment meta tag in index.html rather than from the server's ASPNETCORE_ENVIRONMENT variable. When the published artifact is immutable, that tag is baked at build time, so the same artifact cannot serve different environments without host-level rewriti