Skip to content

Commit

Permalink
Support environment variables starting with ASPNETCORE_ (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou authored Feb 4, 2025
1 parent 846c015 commit a2022c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EventGridEmulator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
builder.Configuration.Sources.Clear();
builder.Configuration.AddJsonFile("appsettings.defaults.json", optional: false, reloadOnChange: false);
builder.Configuration.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true);
builder.Configuration.AddEnvironmentVariables("ASPNETCORE_");
builder.Configuration.AddEnvironmentVariables();

// Serilog provides a more concise console logging experience with colored tokens
Expand Down

0 comments on commit a2022c7

Please sign in to comment.