Skip to content

Commit 3918062

Browse files
Don't serve angular static files in dev mode (#12885)
Don't serve angular static files in dev mode
1 parent afcfeaf commit 3918062

File tree

1 file changed

+4
-1
lines changed
  • src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp

1 file changed

+4
-1
lines changed

src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/Startup.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
8888

8989
#endif
9090
app.UseStaticFiles();
91-
app.UseSpaStaticFiles();
91+
if (!env.IsDevelopment())
92+
{
93+
app.UseSpaStaticFiles();
94+
}
9295

9396
app.UseRouting();
9497

0 commit comments

Comments
 (0)