From d8b1af39f06e4c170dae3fd01b5ca4d49e16c4a3 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Wed, 3 Jul 2019 13:58:21 -0700 Subject: [PATCH] Remove some dead code in Blazor hosting --- .../BlazorHostingEndpointRouteBuilderExtensions.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Components/Blazor/Server/src/Builder/BlazorHostingEndpointRouteBuilderExtensions.cs b/src/Components/Blazor/Server/src/Builder/BlazorHostingEndpointRouteBuilderExtensions.cs index f899f2576f..f800c941ca 100644 --- a/src/Components/Blazor/Server/src/Builder/BlazorHostingEndpointRouteBuilderExtensions.cs +++ b/src/Components/Blazor/Server/src/Builder/BlazorHostingEndpointRouteBuilderExtensions.cs @@ -168,19 +168,7 @@ namespace Microsoft.AspNetCore.Builder throw new ArgumentNullException(nameof(filePath)); } - var config = BlazorConfig.Read(clientAssemblyFilePath); - - // We want to serve "index.html" from whichever directory contains it in this priority order: - // 1. Client app "dist" directory - // 2. Client app "wwwroot" directory - // 3. Server app "wwwroot" directory var directory = endpoints.ServiceProvider.GetRequiredService().WebRootPath; - var indexHtml = config.FindIndexHtmlFile(); - if (indexHtml != null) - { - directory = Path.GetDirectoryName(indexHtml); - } - var options = new StaticFileOptions() { FileProvider = new PhysicalFileProvider(directory),