diff --git a/Streetcode/Streetcode.WebApi/Program.cs b/Streetcode/Streetcode.WebApi/Program.cs index 470debe52..86f211c7b 100644 --- a/Streetcode/Streetcode.WebApi/Program.cs +++ b/Streetcode/Streetcode.WebApi/Program.cs @@ -32,7 +32,7 @@ SupportedUICultures = supportedCulture, ApplyCurrentCultureToResponseHeaders = true }); -if (app.Environment.EnvironmentName == "Local") +if (app.Environment.EnvironmentName != "Production") { app.UseSwagger(); app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "WebAPIv5 v1"));