Skip to content

Commit a48219c

Browse files
committed
feat: 增加调试环境支持
1 parent aa441c2 commit a48219c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BootstrapBlazor/Services/MockWasmHostEnvironment.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ namespace BootstrapBlazor.Components;
1010

1111
class MockWasmHostEnvironment : IHostEnvironment
1212
{
13+
#if DEBUG
14+
public string EnvironmentName { get; set; } = "Development";
15+
#else
1316
public string EnvironmentName { get; set; } = "Production";
17+
#endif
1418

1519
public string ApplicationName { get; set; } = "BootstrapBlazor";
1620

0 commit comments

Comments
 (0)