'HangFire Dashboard on Hosted Blazor App not found

I am migrating an MVC app to hosted blazor and the routing setup seems to skip the HangFire Dashboard. It always falls back to the Blazor app and renders 404 since the /hangfire route does not exist.

I have tried

app.UseHangfireDashboard();

and

app.UseEndpoints(endpoints =>
{
    endpoints.MapHangfireDashboard();
}

but it seems not to work. Same applies to HealthChecksUI. Did you get it serving on a hosted blazor app?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source