Spaces:
Build error
Build error
| using Blazor.Components; | |
| var builder = WebApplication.CreateBuilder(args); | |
| // Add services to the container. | |
| builder.Services.AddRazorComponents() | |
| .AddInteractiveServerComponents(); | |
| var app = builder.Build(); | |
| // Configure the HTTP request pipeline. | |
| if (!app.Environment.IsDevelopment()) | |
| { | |
| app.UseExceptionHandler("/Error", createScopeForErrors: true); | |
| app.UseHsts(); | |
| } | |
| app.UseStatusCodePagesWithReExecute("/not-found", | |
| createScopeForStatusCodePages: true); | |
| // Not needed in Hugging Face Spaces because HF handles TLS termination. | |
| // app.UseHttpsRedirection(); | |
| app.UseAntiforgery(); | |
| app.MapStaticAssets(); | |
| app.MapRazorComponents<App>() | |
| .AddInteractiveServerRenderMode(); | |
| app.Run(); | |