Add configurable BasePath for subfolder hosting and update frontend base handling

This commit is contained in:
2026-01-28 20:00:54 +01:00
parent 1129947183
commit 4509c0f8a8
5 changed files with 21 additions and 3 deletions

View File

@@ -38,6 +38,12 @@ builder.Services.ConfigureHttpJsonOptions(options =>
var app = builder.Build();
var basePath = builder.Configuration["BasePath"];
if (!string.IsNullOrWhiteSpace(basePath))
{
app.UsePathBase(basePath);
}
app.UseGlobalExceptionLogging();
// Ensure database and migrations are applied on startup