Skip to content

Commit 408f2f8

Browse files
committed
Update Configure.AppHost.cs
1 parent 9cbd3b7 commit 408f2f8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

MyApp/Configure.AppHost.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ public void Configure(IWebHostBuilder builder) => builder
1515
context.Configuration.GetSection(nameof(AppConfig)).Bind(AppConfig.Instance);
1616
services.AddSingleton(AppConfig.Instance);
1717
});
18+
19+
public override void Configure()
20+
{
21+
SetConfig(new HostConfig {
22+
#if DEBUG
23+
DebugMode = true,
24+
#else
25+
DebugMode = false,
26+
#endif
27+
});
28+
}
1829
}
1930

2031
public class AppConfig

0 commit comments

Comments
 (0)