Spaces:
Build error
Build error
Download Program.cs from Loresayer/blazor-mcp: direct link, hf CLI and curl.
- Browser
- Download file 709 Bytes
-
https://huggingface.co/spaces/Loresayer/blazor-mcp/resolve/main/Program.cs
- Command line
-
hf download hf://spaces/Loresayer/blazor-mcp/Program.cs
-
curl -L -o Program.cs https://huggingface.co/spaces/Loresayer/blazor-mcp/resolve/main/Program.cs
709 Bytes
| 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(); | |