Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Jul 5, 2024
1 parent 0713024 commit e39ccee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@
"src/Boilerplate.Api/Mappers/ProductsMapper.cs",
"src/Boilerplate.Api/Models/Categories/**",
"src/Boilerplate.Api/Models/Products/**",
"src/Client/Boilerplate.Client.Core/Controllers/Categories/**",
"src/Client/Boilerplate.Client.Core/Controllers/Products/**",
"src/Client/Boilerplate.Client.Core/Controllers/Dashboard/**",
"src/Boilerplate.Shared/Controllers/Categories/**",
"src/Boilerplate.Shared/Controllers/Products/**",
"src/Boilerplate.Shared/Controllers/Dashboard/**",
"src/Client/Boilerplate.Client.Core/Components/Pages/Categories/**",
"src/Client/Boilerplate.Client.Core/Components/Pages/Dashboard/**",
"src/Client/Boilerplate.Client.Core/Components/Pages/Products/**"
Expand All @@ -295,7 +295,7 @@
"src/Boilerplate.Api/Controllers/Todo/**",
"src/Boilerplate.Api/Mappers/TodoMapper.cs",
"src/Boilerplate.Api/Models/Todo/**",
"src/Client/Boilerplate.Client.Core/Controllers/Todo/**",
"src/Boilerplate.Shared/Controllers/Todo/**",
"src/Client/Boilerplate.Client.Core/Components/Pages/Todo/**"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ public static void AddApiConfigurations(this IConfigurationBuilder builder, stri
var appsettingsJsonFilePath = Path.Combine(AppContext.BaseDirectory, "appsettings.json");
var appsettingsEnvJsonFilePath = Path.Combine(AppContext.BaseDirectory, $"appsettings.{env}.json");

if (File.Exists(appsettingsJsonFilePath))
builder.AddJsonFile(appsettingsJsonFilePath, optional: false, reloadOnChange: true);

if (File.Exists(appsettingsEnvJsonFilePath))
builder.AddJsonFile(appsettingsEnvJsonFilePath, optional: false, reloadOnChange: true);
builder.AddJsonFile(appsettingsJsonFilePath, optional: false, reloadOnChange: true);
builder.AddJsonFile(appsettingsEnvJsonFilePath, optional: true, reloadOnChange: true);
}
}

0 comments on commit e39ccee

Please sign in to comment.