diff --git a/Endpoint/Configuration/AppConfig/EnvironmentConfiguration.cs b/Endpoint/Configuration/AppConfig/EnvironmentConfiguration.cs index 80f2fb0..9f4523b 100644 --- a/Endpoint/Configuration/AppConfig/EnvironmentConfiguration.cs +++ b/Endpoint/Configuration/AppConfig/EnvironmentConfiguration.cs @@ -61,7 +61,8 @@ public static class EnvironmentConfiguration result.AddInMemoryCollection(LoadEnvironment(".env.develop")!); #endif - Environment.SetEnvironmentVariable("PATH_TO_SAVE", variablesFromFile["PATH_TO_SAVE"]); + if (variablesFromFile.TryGetValue("PATH_TO_SAVE", out var data)) + Environment.SetEnvironmentVariable("PATH_TO_SAVE", variablesFromFile["PATH_TO_SAVE"]); return result.Build(); }