Skip to content

Commit

Permalink
Use the slim builder to avoid loading static assets - We're exposing …
Browse files Browse the repository at this point in the history
…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 and github-actions committed Jan 31, 2024
1 parent 7ffc9ba commit 8d94d35
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 @@ -66,7 +66,10 @@ public DashboardServiceHost(

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

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

// Environment
builder.Services.AddSingleton<IEnvironmentVariables, EnvironmentVariables>();
Expand Down

0 comments on commit 8d94d35

Please sign in to comment.