Fixed a bug with config (#1996)

This commit is contained in:
Joe Milazzo 2023-05-15 13:12:36 -05:00 committed by GitHub
parent 161120e39a
commit 90c44f6d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,9 +165,9 @@ public class Program
var env = hostingContext.HostingEnvironment;
config.AddJsonFile("config/appsettings.json", optional: false, reloadOnChange: false)
config.AddJsonFile("config/appsettings.json", optional: true, reloadOnChange: false)
.AddJsonFile($"config/appsettings.{env.EnvironmentName}.json",
optional: false, reloadOnChange: false);
optional: true, reloadOnChange: false);
})
.ConfigureWebHostDefaults(webBuilder =>
{