Skip to content

Commit

Permalink
Merge pull request #85 from bcgov/GeorgeWalker-patch-2
Browse files Browse the repository at this point in the history
Update Startup.cs
  • Loading branch information
GeorgeWalker authored Nov 22, 2024
2 parents 00efaf6 + 60fa091 commit 97c9dbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpu-app/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF
};

app.UseStaticFiles(staticFileOptions);
app.UseSpaStaticFiles(staticFileOptions);
if (env.IsDevelopment())
{
app.UseSpaStaticFiles(staticFileOptions);
}

app.UseNoCacheHttpHeaders();
// IMPORTANT: This session call MUST go before UseMvc()
Expand Down

0 comments on commit 97c9dbd

Please sign in to comment.