We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 788e0f0 commit b8a3708Copy full SHA for b8a3708
samples/SimpleWebSample/Program.cs
@@ -13,7 +13,7 @@ public static int Main(string[] args)
13
var configuration = new ConfigurationBuilder()
14
.SetBasePath(Directory.GetCurrentDirectory())
15
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
16
- .AddJsonFile($"appsettings.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT")}.json", optional: true)
+ .AddJsonFile($"appsettings.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production"}.json", optional: true)
17
.Build();
18
19
Log.Logger = new LoggerConfiguration()
0 commit comments