global: read env from .env file in release mode

This commit is contained in:
Abdullah Atta committed 2023-01-05 19:27:25 +05:00
1 parent 9db20e7f98
commit 50c06fc11d
3 files changed
+6

No files matched your search

+2
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();