Skip to content

Conversation

ycmjason
Copy link
Contributor

Description

Added information about loading .env files programmatically in Node.js using process.loadEnvFile.

Validation

N/A

Related Issues

N/A

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run pnpm format to ensure the code follows the style guide.
  • I have run pnpm test to check if all tests are passing.
  • I have run pnpm build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

@Copilot Copilot AI review requested due to automatic review settings October 17, 2025 07:24
@ycmjason ycmjason requested a review from a team as a code owner October 17, 2025 07:24
@vercel
Copy link

vercel bot commented Oct 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nodejs-org Ready Ready Preview Oct 19, 2025 7:22pm

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds documentation for process.loadEnvFile(), a built-in Node.js API for loading .env files programmatically. The documentation complements the existing CLI flag (--env-file) section by providing developers with a programmatic alternative.

Key changes:

  • Added a new section documenting the process.loadEnvFile(path) API
  • Included code examples showing both default and custom path usage
  • Documented version history, parameters, and behavior notes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Added information about loading .env files programmatically in Node.js using process.loadEnvFile.

Signed-off-by: YCM Jason <me@ycmjason.com>
@ycmjason ycmjason requested a review from Copilot October 17, 2025 07:29
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ycmjason ycmjason requested a review from Copilot October 17, 2025 07:31
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@avivkeller avivkeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

ycmjason and others added 5 commits October 18, 2025 08:48
…variables-from-nodejs.md

Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: YCM Jason <me@ycmjason.com>
…variables-from-nodejs.md

Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: YCM Jason <me@ycmjason.com>
…variables-from-nodejs.md

Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: YCM Jason <me@ycmjason.com>
…variables-from-nodejs.md

Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: YCM Jason <me@ycmjason.com>
…variables-from-nodejs.md

Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: YCM Jason <me@ycmjason.com>
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mikeesto
Copy link
Member

I haven't had a chance to dig in but seems odd that the preview shows a 500 error? https://nodejs-btlkbb6vr-openjs.vercel.app/en/learn/command-line/how-to-read-environment-variables-from-nodejs

@codecov
Copy link

codecov bot commented Oct 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.41%. Comparing base (f7c436e) to head (f57521f).
⚠️ Report is 5 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8233      +/-   ##
==========================================
- Coverage   76.43%   76.41%   -0.03%     
==========================================
  Files         115      115              
  Lines        9643     9643              
  Branches      317      318       +1     
==========================================
- Hits         7371     7369       -2     
- Misses       2271     2273       +2     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…variables-from-nodejs.md

Co-authored-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com>
Signed-off-by: YCM Jason <me@ycmjason.com>
…variables-from-nodejs.md

Co-authored-by: Michael Esteban <mickel13@gmail.com>
Signed-off-by: YCM Jason <me@ycmjason.com>
Copy link
Member

@mikeesto mikeesto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@avivkeller
Copy link
Member

@ycmjason please lint, then we can merge

@avivkeller avivkeller enabled auto-merge October 19, 2025 19:22
@avivkeller avivkeller added this pull request to the merge queue Oct 19, 2025
Merged via the queue into nodejs:main with commit 44ad1e2 Oct 19, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants