Don't serve angular static files in dev mode (#12885)

Don't serve angular static files in dev mode
This commit is contained in:
Ryan Brandenburg 2019-08-09 14:30:46 -07:00 committed by GitHub
parent afcfeaf0ac
commit 391806283a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -88,7 +88,10 @@ namespace Company.WebApplication1
#endif
app.UseStaticFiles();
app.UseSpaStaticFiles();
if (!env.IsDevelopment())
{
app.UseSpaStaticFiles();
}
app.UseRouting();