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>
This commit is contained in:
manjit singh authored and Antoine du Hamel committed 2026-11-12 18:00:40 +01:00
1 parent 1d82e0ff74
commit ae48779d97
1 file changed
+2
+2
View File
@@ -2755,6 +2755,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');