From e2d2584cb33fca860061161edb3a4d8e48065651 Mon Sep 17 00:00:00 2001 From: Howard Richards Date: Tue, 2 Jul 2019 14:07:01 +0100 Subject: [PATCH] Added fix suggested by @kant2002 --- BlazorDynamicList.Server/Startup.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BlazorDynamicList.Server/Startup.cs b/BlazorDynamicList.Server/Startup.cs index e1b5a35..65f6a3e 100644 --- a/BlazorDynamicList.Server/Startup.cs +++ b/BlazorDynamicList.Server/Startup.cs @@ -40,7 +40,11 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseEndpoints(endpoints => { endpoints.MapDefaultControllerRoute(); +#if DEBUG endpoints.MapFallbackToClientSideBlazor("index.html"); +#else + endpoints.MapFallbackToClientSideBlazor("_content/BlazorDynamicList.Client/index.html"); +#endif }); } }