We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 315cf46 commit c96da56Copy full SHA for c96da56
1 file changed
src/ByteSync.Client/Services/Communications/ConnectionConstantsService.cs
@@ -49,6 +49,12 @@ private string SetApiUrl()
49
{
50
if (_environmentService.ExecutionMode == ExecutionMode.Regular)
51
52
+ if (_environmentService.Arguments.Contains(RegularArguments.CF_API_URL_STAGING))
53
+ {
54
+ _logger.LogWarning("*** Staging API URL is used, but the application is running in production mode ***");
55
+ return _configuration["StagingUrl"]!;
56
+ }
57
+
58
return _configuration["ProductionUrl"]!;
59
}
60
else
0 commit comments