Skip to content

Commit

Permalink
Use the slim builder to avoid loading static assets
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 committed Jan 31, 2024
1 parent 762ec09 commit 085aa5a
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 085aa5a

Please sign in to comment.