From 658bfe6f0c6ff7726946734b66eb4639987bcc21 Mon Sep 17 00:00:00 2001 From: Versile Johnson II Date: Tue, 22 Apr 2025 20:26:45 -0500 Subject: [PATCH 1/2] ignore wwwroot/client directory --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index b51d8438..45d0743e 100644 --- a/.gitignore +++ b/.gitignore @@ -355,3 +355,4 @@ Client/Properties/ServiceDependencies/TryMudBlazor - Web Deploy/ # Rider idea folder .idea/ *.DS_Store +/src/TryMudBlazor.Server/wwwroot/client From b259321a007aedea37e2aa7fa23c48a1fd594a8c Mon Sep 17 00:00:00 2001 From: Versile Johnson II Date: Tue, 22 Apr 2025 20:27:24 -0500 Subject: [PATCH 2/2] update build action to copy client to wwwroot/client and update Program.cs to point there. --- src/TryMudBlazor.Server/Program.cs | 2 +- src/TryMudBlazor.Server/TryMudBlazor.Server.csproj | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/TryMudBlazor.Server/Program.cs b/src/TryMudBlazor.Server/Program.cs index 0aaf1a36..8e9191ea 100644 --- a/src/TryMudBlazor.Server/Program.cs +++ b/src/TryMudBlazor.Server/Program.cs @@ -44,7 +44,7 @@ public static void Main(string[] args) var version = GetVersion(); var cacheBusting = $"v{version.Major}.{version.Minor}.{version.Build}"; - app.MapFallbackToFile("index.html") + app.MapFallbackToFile("client/index.html") .CacheOutput(policy => policy.SetVaryByQuery("cachebust", cacheBusting)); app.Run(); diff --git a/src/TryMudBlazor.Server/TryMudBlazor.Server.csproj b/src/TryMudBlazor.Server/TryMudBlazor.Server.csproj index 8e14c146..d58a0462 100644 --- a/src/TryMudBlazor.Server/TryMudBlazor.Server.csproj +++ b/src/TryMudBlazor.Server/TryMudBlazor.Server.csproj @@ -1,4 +1,4 @@ - + enable @@ -19,4 +19,16 @@ + + + + + + + + +