Increase Blazor hub message limit

This commit is contained in:
2026-04-01 22:50:24 +02:00
parent c1236eec63
commit 1c8cb71cb4
2 changed files with 27 additions and 2 deletions

View File

@@ -4,7 +4,9 @@ using RpgRoller.Hosting;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRpgRollerCore(builder.Configuration, builder.Environment);
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents()
.AddHubOptions(options => options.MaximumReceiveMessageSize = 256 * 1024);
builder.Services.AddScoped<RpgRollerApiClient>();
var app = builder.Build();