Add new Blazor web app

This commit is contained in:
2025-09-22 19:50:45 +09:00
parent 814f40df0c
commit 3e9436ba0c
14 changed files with 231 additions and 1 deletions

24
Hcs.WebApp/Program.cs Normal file
View File

@ -0,0 +1,24 @@
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<App>()
.AddInteractiveServerRenderMode();
app.Run();