global: read env from .env file in release mode

This commit is contained in:
Abdullah Atta
2023-01-05 19:27:25 +05:00
parent 9db20e7f98
commit 50c06fc11d
3 changed files with 6 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ namespace Notesnook.API
{
#if DEBUG
DotNetEnv.Env.TraversePath().Load(".env.local");
#else
DotNetEnv.Env.TraversePath().Load(".env");
#endif
IHost host = CreateHostBuilder(args).Build();
await host.RunAsync();