Environment
Development, Staging or Production, set by ASPNETCORE_ENVIRONMENT.
What is Environment?
The environment (Development, Staging, Production) comes from ASPNETCORE_ENVIRONMENT. Code can check it to turn on developer-only features like detailed errors.
if (app.Environment.IsDevelopment())
{
app.MapOpenApi();
}
Level: Apprentice · More ASP.NET Core terms at this level
Updated