diff --git a/src/DrawTogether/Components/App.razor b/src/DrawTogether/Components/App.razor index da91a5e..e4eee58 100644 --- a/src/DrawTogether/Components/App.razor +++ b/src/DrawTogether/Components/App.razor @@ -13,7 +13,7 @@ - + diff --git a/src/DrawTogether/Program.cs b/src/DrawTogether/Program.cs index bb9624a..42caa0a 100644 --- a/src/DrawTogether/Program.cs +++ b/src/DrawTogether/Program.cs @@ -1,4 +1,3 @@ -using Akka.Hosting; using Microsoft.AspNetCore.Components.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; @@ -7,9 +6,7 @@ using DrawTogether.Config; using DrawTogether.Data; using DrawTogether.Email; -using Microsoft.AspNetCore.Identity.UI.Services; using Microsoft.AspNetCore.ResponseCompression; -using Microsoft.Extensions.DependencyInjection.Extensions; var builder = WebApplication.CreateBuilder(args); @@ -17,7 +14,9 @@ builder.Services.AddRazorComponents() .AddInteractiveServerComponents(); +// If you also want WebAssembly SSR, include this line: builder.Services.AddServerSideBlazor(); + builder.Services.AddCascadingAuthenticationState(); builder.Services.AddScoped(); builder.Services.AddScoped(); @@ -74,8 +73,8 @@ } app.UseHttpsRedirection(); -app.MapBlazorHub(); app.UseStaticFiles(); +app.UseResponseCompression(); app.UseAntiforgery(); app.MapRazorComponents() @@ -84,5 +83,4 @@ // Add additional endpoints required by the Identity /Account Razor components. app.MapAdditionalIdentityEndpoints(); - app.Run();