changed environment names in csproj, moved https redirection to dev only

This commit is contained in:
andy 2021-12-08 00:30:50 +00:00
parent 599cefb736
commit a0090470e8
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@
<None Update="appsettings.Development.json" Condition="Exists('appsettings.Development.json')">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="appsettings.Release.json" Condition="Exists('appsettings.Release.json')">
<None Update="appsettings.Production.json" Condition="Exists('appsettings.Production.json')">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="appsettings.json">

View File

@ -41,7 +41,7 @@
<None Update="appsettings.Development.json" Condition="Exists('appsettings.Development.json')">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="appsettings.Release.json" Condition="Exists('appsettings.Release.json')">
<None Update="appsettings.Production.json" Condition="Exists('appsettings.Production.json')">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="appsettings.json">

View File

@ -113,6 +113,7 @@ namespace Selector.Web
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseHttpsRedirection();
}
else
{
@ -121,7 +122,6 @@ namespace Selector.Web
//app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();