Skip to content

Commit 5f1ee47

Browse files
ycmjasonavivkeller
andauthored
Update apps/site/pages/en/learn/command-line/how-to-read-environment-variables-from-nodejs.md
Co-authored-by: Aviv Keller <me@aviv.sh> Signed-off-by: YCM Jason <me@ycmjason.com>
1 parent 553f750 commit 5f1ee47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/site/pages/en/learn/command-line/how-to-read-environment-variables-from-nodejs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ Node.js provides a built-in API to load `.env` files directly from your code: [`
7171

7272
This method loads variables from a `.env` file into `process.env`, similar to how the `--env-file` flag works — but can be invoked programmatically.
7373

74+
Because this method is invoked post-initialization, the setting of startup-related environment variables (i.e. `NODE_OPTIONS`) has no effect on the process (however, these variables can still be accessed via `process.env`).
75+
7476
### Example
7577

7678
```env

0 commit comments

Comments
 (0)