Skip to content

Commit

Permalink
chore: minor template fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaxelr committed Jan 18, 2021
1 parent ea766a7 commit ef16b84
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Content/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public Startup(IWebHostEnvironment env)
{
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables();

Expand All @@ -24,7 +24,6 @@ public Startup(IWebHostEnvironment env)

public IConfigurationRoot Configuration { get; }

// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddSpaStaticFiles(configuration => configuration.RootPath = "ClientApp/dist");
Expand All @@ -39,7 +38,6 @@ public void ConfigureServices(IServiceCollection services)
});
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
int.TryParse(Configuration.GetSection("ClientAppPort").Value, out int port);
Expand Down

0 comments on commit ef16b84

Please sign in to comment.