using Hcs.WebApp.Components; var builder = WebApplication.CreateBuilder(args); builder.Services .AddRazorComponents() .AddInteractiveServerComponents(); var app = builder.Build(); if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Error", createScopeForErrors: true); app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseAntiforgery(); app .MapRazorComponents() .AddInteractiveServerRenderMode(); app.Run();