Prefer uppercase ASPNETCORE_ENVIRONMENT
This commit is contained in:
parent
e505ecbc21
commit
289b3f58d0
|
|
@ -63,7 +63,7 @@ namespace Microsoft.AspNetCore.Hosting.Internal
|
||||||
|
|
||||||
hostingEnvironment.EnvironmentName =
|
hostingEnvironment.EnvironmentName =
|
||||||
options.Environment ??
|
options.Environment ??
|
||||||
Environment.GetEnvironmentVariable($"ASPNETCORE_{WebHostDefaults.EnvironmentKey}") ??
|
Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ??
|
||||||
hostingEnvironment.EnvironmentName;
|
hostingEnvironment.EnvironmentName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue