Skip to content

Commit

Permalink
Remove redundant configuration source adds
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Nov 26, 2024
1 parent 6a9367a commit 799fe9b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Common/Extensions/WebApplicationBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ public static class WebApplicationBuilderExtensions
{
public static void ApplyBaseConfiguration(this WebApplicationBuilder builder, Action<KestrelServerOptions> configurePorts)
{
builder.Configuration.AddEnvironmentVariables();
builder.Configuration.AddJsonFile("appsettings.Custom.json", optional: true, reloadOnChange: false);
builder.Configuration.AddJsonFile($"appsettings.{builder.Environment.EnvironmentName}.json", optional: true, reloadOnChange: false);

var isDevelopment = builder.Environment.IsDevelopment();
builder.Host.UseDefaultServiceProvider((context, options) =>
Expand Down

0 comments on commit 799fe9b

Please sign in to comment.