diff --git a/src/ReC.API/Program.cs b/src/ReC.API/Program.cs index d574d53..dc657be 100644 --- a/src/ReC.API/Program.cs +++ b/src/ReC.API/Program.cs @@ -25,6 +25,13 @@ try var config = builder.Configuration; + Directory + .GetFiles(builder.Environment.ContentRootPath, "appsettings.*.json", SearchOption.TopDirectoryOnly) + .Where(file => Path.GetFileName(file) != $"appsettings.Development.json") + .Where(file => Path.GetFileName(file) != $"appsettings.migration.json") + .ToList() + .ForEach(file => config.AddJsonFile(file, true, true)); + // Add services to the container. builder.Services.AddRecServices(options => {