diff --git a/.gitignore b/.gitignore index f587494bb3..5a32fbbfc2 100644 --- a/.gitignore +++ b/.gitignore @@ -335,3 +335,5 @@ appsettings.Production.json /Conduit/migrateup.bat /Conduit/Conduit.Tests/integrationtestsettings.json /Conduit/*.lutconfig +/Conduit/migrateup.azure.bat +/Conduit/Conduit.Web/wwwroot diff --git a/Conduit/Conduit.Web/Program.cs b/Conduit/Conduit.Web/Program.cs index 5435038ffb..fa5dc7ef3d 100644 --- a/Conduit/Conduit.Web/Program.cs +++ b/Conduit/Conduit.Web/Program.cs @@ -67,6 +67,9 @@ public static void Main(string[] args) app.UseCors("CorsPolicy"); + app.UseStaticFiles(); + app.MapFallbackToFile("index.html"); + app.Run(); // Add the following line to close the Couchbase connection inside the app.Run() method at the end of Program.cs