diff --git a/Api/Program.cs b/Api/Program.cs index 6fcc5c6..85cbaa0 100755 --- a/Api/Program.cs +++ b/Api/Program.cs @@ -77,7 +77,7 @@ namespace Api app.UseRewriter(rewriteOptions); // Serve static files from the Angular app - if (app.Environment.IsDevelopment()) + if (app.Environment.IsDevelopment() && Directory.Exists(Path.Combine(Directory.GetCurrentDirectory(), "../Web/dist/Web/browser"))) { var currentDirectory = Directory.GetCurrentDirectory(); var staticFilePath = Path.Combine(currentDirectory, "../Web/dist/Web/browser");