From 42f66fbc69fc21d3c9e0654ffde2c7f3cc8b21a7 Mon Sep 17 00:00:00 2001 From: Alexandre Brandizzi Date: Thu, 3 Sep 2026 15:17:30 -0300 Subject: [PATCH] fix: allow Sentry-free design-time tooling --- Api.SeaHavenIndustries/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Api.SeaHavenIndustries/Program.cs b/Api.SeaHavenIndustries/Program.cs index 2c9f1b8..87bc2a3 100644 --- a/Api.SeaHavenIndustries/Program.cs +++ b/Api.SeaHavenIndustries/Program.cs @@ -19,6 +19,9 @@ var builder = WebApplication.CreateBuilder(args); builder.WebHost.UseSentry(options => { + options.Dsn = builder.Configuration["SENTRY_DSN"] ?? string.Empty; + options.Environment = builder.Configuration["SENTRY_ENVIRONMENT"] + ?? builder.Environment.EnvironmentName.ToLowerInvariant(); options.TracesSampleRate = 1.0; options.SendDefaultPii = false; });