feat: explore blazor app as web app

This commit is contained in:
Stevan Freeborn
2025-04-05 13:11:35 -05:00
parent 660533b99e
commit 1c9fd05251
16 changed files with 279 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
using AltGen.Web.Components;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorComponents()
.AddInteractiveWebAssemblyComponents();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseWebAssemblyDebugging();
}
else
{
app.UseExceptionHandler("/Error", createScopeForErrors: true);
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseAntiforgery();
app.MapStaticAssets();
app.MapRazorComponents<App>()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(typeof(AltGen.Web.Client._Imports).Assembly);
app.Run();