Skip to content

Commit

Permalink
Use the slim builder to avoid loading static assets (dotnet#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 dotnet#2012
  • Loading branch information
davidfowl authored and radical committed Feb 2, 2024
1 parent c5a64c6 commit 3c760bf
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 3c760bf

Please sign in to comment.