diff --git a/ConfigurationUi/Extensions/HostBuilderExtensions.cs b/ConfigurationUi/Extensions/HostBuilderExtensions.cs index d97d84e..2adbcc8 100644 --- a/ConfigurationUi/Extensions/HostBuilderExtensions.cs +++ b/ConfigurationUi/Extensions/HostBuilderExtensions.cs @@ -16,11 +16,10 @@ public static IHostBuilder AddConfigurationUi(this IHostBuilder ho var optionsBuilder = new ConfigurationUiOptionsBuilder(); - hostBuilder.ConfigureAppConfiguration((_, builder) => { optionsBuilder.UseJsonFileStorage(filePath, builder.GetFileProvider()).WithSchemeFromType(); - builder.Sources.Insert(0, new JsonConfigurationSource() { Path = filePath }); + builder.Sources.Add(new JsonConfigurationSource() { Path = filePath }); }); hostBuilder.ConfigureServices((_, services) =>