Commit cab918281ec for nodejs
commit cab918281ec525113a79f3123dc499c97ca4ccf2
Author: manjit singh <39226362+manjitks@users.noreply.github.com>
Date: Sat Nov 7 21:03:48 2026 +0530
doc: clarify process.loadEnvFile variable precedence (#66315)
Signed-off-by: manjit <manjitcse@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67276
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
diff --git a/doc/api/process.md b/doc/api/process.md
index 8a575316b06..d47983a97b4 100644
--- a/doc/api/process.md
+++ b/doc/api/process.md
@@ -2756,6 +2756,8 @@ changes:
Loads the `.env` file into `process.env`. Usage of `NODE_OPTIONS`
in the `.env` file will not have any effect on Node.js.
+If a variable is already set in `process.env`, its existing value takes
+precedence and is not overwritten by the value from the `.env` file.
```cjs
const { loadEnvFile } = require('node:process');