File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,9 @@ console.log(Deno.env.has("FIREBASE_AUTH_DOMAIN")); // true
27
27
28
28
Deno supports ` .env ` files. You can cause Deno to read environment variables
29
29
from ` .env ` using the ` --env-file ` flag: ` deno run --env-file <script> ` . This
30
- will read ` .env ` by default; if you want or need to load environment variables
31
- from a different file, you can specify that file as a parameter to the flag.
30
+ will read ` .env ` from the current working directory or the first parent
31
+ directory that contains one; if you want to load environment variables from a
32
+ different file, you can specify that file as a parameter to the flag.
32
33
Additionally, you can pass multiple ` --env-file ` flags (e.g.,
33
34
` deno run --env-file=.env.one --env-file=.env.two --allow-env <script> ` ) to load
34
35
variables from multiple files.
You can’t perform that action at this time.
0 commit comments