Skip to content

Commit

Permalink
chore: fixes directory base path
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardosbcabral committed Sep 26, 2023
1 parent d9c32db commit d1e7c4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Scaffolding/Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public static WebApplicationBuilder Initialize(string[] args = null, string cust
}

builder.Configuration
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile($"appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile($"appsettings.{EnvironmentUtility.GetCurrentEnvironment()}.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables(apiSettings.EnvironmentVariablesPrefix);

Expand Down

0 comments on commit d1e7c4f

Please sign in to comment.