diff --git a/backend/api/Configurations/ConfigurationBuilderExtensions.cs b/backend/api/Configurations/ConfigurationBuilderExtensions.cs index 64f71a113..fdcc6c065 100644 --- a/backend/api/Configurations/ConfigurationBuilderExtensions.cs +++ b/backend/api/Configurations/ConfigurationBuilderExtensions.cs @@ -61,6 +61,9 @@ public static void AddDotEnvironmentVariables(this WebApplicationBuilder builder '=', StringSplitOptions.RemoveEmptyEntries); + if (parts.Length == 0 || parts[0].StartsWith('#')) + continue; + Environment.SetEnvironmentVariable(parts[0], parts[1]); }