Skip to content

Commit

Permalink
fix: environment variable NOVU_API_KEY is not injected (as an override)
Browse files Browse the repository at this point in the history
  • Loading branch information
todd committed Aug 28, 2023
1 parent 424d1d4 commit 8bef296
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Novu.Extensions/ConfigurationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public static NovuClientConfiguration GetNovuClientConfiguration(this IConfigura
novuConfiguration.Url = novuConfigurationUrl;
}

var novuConfigurationApiKey = Environment.GetEnvironmentVariable("NOVU_API_KEY");
if (novuConfigurationApiKey is not null)
{
novuConfiguration.ApiKey = novuConfigurationApiKey;
}

return novuConfiguration;
}
}

0 comments on commit 8bef296

Please sign in to comment.