chore: read env vars from .env.local during dev

This commit is contained in:
Abdullah Atta
2022-12-30 19:23:39 +05:00
parent a789c5bb55
commit 9af8a46f87
6 changed files with 19 additions and 4 deletions

View File

@@ -33,6 +33,9 @@ namespace Notesnook.API
{
public static async Task Main(string[] args)
{
#if DEBUG
DotNetEnv.Env.TraversePath().Load(".env.local");
#endif
IHost host = CreateHostBuilder(args).Build();
await host.RunAsync();
}