File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public static string GetContent(Settings settings)
1919 else
2020 {
2121 serviceControlUrl = settings . ServiceControlUri . ToString ( ) ;
22- monitoringUrl = settings . MonitoringUri . ToString ( ) ;
22+ monitoringUrl = settings . MonitoringUri ? . ToString ( ) ?? "!" ;
2323 }
2424
2525 var constantsFile = $$ """
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class Settings
66{
77 public required Uri ServiceControlUri { get ; init ; }
88
9- public required Uri MonitoringUri { get ; init ; }
9+ public required Uri ? MonitoringUri { get ; init ; }
1010
1111 public required string DefaultRoute { get ; init ; }
1212
@@ -36,7 +36,7 @@ public static Settings GetFromEnvironmentVariables()
3636 monitoringUrl ??= monitoringUrls ;
3737 monitoringUrl ??= "http://localhost:33633/" ;
3838
39- var monitoringUri = new Uri ( monitoringUrl ) ;
39+ var monitoringUri = monitoringUrl == "!" ? null : new Uri ( monitoringUrl ) ;
4040
4141 var defaultRoute = Environment . GetEnvironmentVariable ( "DEFAULT_ROUTE" ) ?? "/dashboard" ;
4242
You can’t perform that action at this time.
0 commit comments