|
|
@ -18,12 +18,19 @@ namespace PurchaseBff |
|
|
|
} |
|
|
|
|
|
|
|
public static IWebHost BuildWebHost(string[] args) => |
|
|
|
WebHost.CreateDefaultBuilder(args) |
|
|
|
.UseStartup<Startup>() |
|
|
|
WebHost |
|
|
|
.CreateDefaultBuilder(args) |
|
|
|
.ConfigureAppConfiguration(cb => |
|
|
|
{ |
|
|
|
cb.AddJsonFile("appsettings.localhost.json", optional: true); |
|
|
|
var sources = cb.Sources; |
|
|
|
sources.Insert(3, new Microsoft.Extensions.Configuration.Json.JsonConfigurationSource() |
|
|
|
{ |
|
|
|
Optional = true, |
|
|
|
Path = "appsettings.localhost.json", |
|
|
|
ReloadOnChange = false |
|
|
|
}); |
|
|
|
}) |
|
|
|
.UseStartup<Startup>() |
|
|
|
.Build(); |
|
|
|
} |
|
|
|
} |