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). (#2015)

Fixes #2012

Co-authored-by: David Fowler <[email protected]>
  • Loading branch information
github-actions[bot] and davidfowl authored Jan 31, 2024
1 parent 7ffc9ba commit ea50640
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 ea50640

Please sign in to comment.