Don't serve angular static files in dev mode (#12885)
Don't serve angular static files in dev mode
This commit is contained in:
parent
afcfeaf0ac
commit
391806283a
|
|
@ -88,7 +88,10 @@ namespace Company.WebApplication1
|
|||
|
||||
#endif
|
||||
app.UseStaticFiles();
|
||||
app.UseSpaStaticFiles();
|
||||
if (!env.IsDevelopment())
|
||||
{
|
||||
app.UseSpaStaticFiles();
|
||||
}
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue