From d1e7c4f0b94b399a8aab228ad028be813cb8cafa Mon Sep 17 00:00:00 2001 From: Eduardo Cabral Date: Tue, 26 Sep 2023 16:16:56 -0300 Subject: [PATCH] chore: fixes directory base path --- src/Scaffolding/Api.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Scaffolding/Api.cs b/src/Scaffolding/Api.cs index abd72d5..5a7720d 100644 --- a/src/Scaffolding/Api.cs +++ b/src/Scaffolding/Api.cs @@ -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);