Skip to content

doc: document environment precedence in process.loadEnvFile - #67111

Open
helmipradita wants to merge 1 commit into
nodejs:mainfrom
helmipradita:doc/process-loadenvfile-precedence
Open

helmipradita wants to merge 1 commit into
nodejs:mainfrom
helmipradita:doc/process-loadenvfile-precedence

Conversation

@helmipradita

Copy link
Copy Markdown

Clarifies environment variable precedence in process.loadEnvFile().

Fixes: #66315

The --env-file CLI documentation explicitly specifies that pre-existing variables in process.env take precedence over values defined in the file. process.loadEnvFile() shares the same runtime behaviour, but this was previously omitted from its API documentation.

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to Node.js documentation. process Issues and PRs related to the process subsystem. labels Oct 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Welcome to Node.js, and thank you for your first contribution!

Before review, please take a moment to read:

Please make sure every commit is signed off. For a first pull request, GitHub Actions require collaborator approval and Jenkins CI must be started by a collaborator or triager, so an initial wait is normal.

Caution

AgentScan found account activity patterns that may be consistent with automation. This is a heuristic, not proof that this pull request was opened by an agent or violates policy. AI-assisted contributions are permitted, but automated tooling must not open pull requests without advance approval, and contributors must personally understand, test, verify, and take responsibility for every submitted change. See the AgentScan analysis, AI use policy, and automation policy for additional context.

Fixes: nodejs#66315
PR-URL: nodejs#67111
Signed-off-by: Helmi Pradita <helmipraditaa@gmail.com>
@helmipradita
helmipradita force-pushed the doc/process-loadenvfile-precedence branch from 5b70362 to 799fc97 Compare October 29, 2026 16:31
@helmipradita

Copy link
Copy Markdown
Author

Hi! Just to clarify the AgentScan flag: yesterday I was running automated badge tests on my personal repository (belajar-vibe-coding), which triggered the rapid-PR heuristic. This documentation fix was manually researched and written by me to address #66315. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentscan:automated-account doc Issues and PRs related to Node.js documentation. process Issues and PRs related to the process subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] process.loadEnvFile() does not document behaviour when variables already exist

2 participants