Skip to content

Commit

Permalink
Use the slim builder to avoid loading static assets (#2013)
Browse files Browse the repository at this point in the history
- We're exposing a simple gRPC endpoint for the dashboard to talk to. We can avoid loading static assets completely (which causes all kinds of problems when things get out of sync).

Fixes #2012
  • Loading branch information
davidfowl authored Jan 31, 2024
1 parent 73004d9 commit eb62805
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Aspire.Hosting/Dashboard/DashboardServiceHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ public DashboardServiceHost(

try
{
var builder = WebApplication.CreateBuilder();
var builder = WebApplication.CreateSlimBuilder();

// Turn on HTTPS
builder.WebHost.UseKestrelHttpsConfiguration();

// Configuration
builder.Services.AddSingleton(configuration);
Expand Down

0 comments on commit eb62805

Please sign in to comment.