Skip to content

Commit 9047df2

Browse files
Trim key prefix for XtremeIdiots.Portal.Web configuration keys
1 parent 8d24935 commit 9047df2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/XtremeIdiots.Portal.Web/Program.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ public static IHostBuilder CreateHostBuilder(string[] args)
5959

6060
foreach (var keyFilter in appConfigurationKeyFilters)
6161
{
62-
appConfig.Select(keyFilter, environmentLabel);
62+
var selection = appConfig.Select(keyFilter, environmentLabel);
63+
64+
if (keyFilter == "XtremeIdiots.Portal.Web:*")
65+
{
66+
selection.TrimKeyPrefix("XtremeIdiots.Portal.Web:");
67+
}
6368
}
6469

6570
appConfig.Select(KeyFilter.Any, LabelFilter.Null);

0 commit comments

Comments
 (0)