Skip to content

Commit 34a174b

Browse files
committed
fix(learn): env var tutorial link to Environment Variables docs
Adjust the link in the "How to read environment variables from Node.js" tutorial to refer to the environment variables documentation added in 24.5.0. Fixes #7995
1 parent 8194265 commit 34a174b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ console.log(process.env.USER_KEY); // "foobar"
2727

2828
In the same way you can access any custom environment variable you set.
2929

30-
Node.js 20 introduced **experimental** [support for .env files](https://nodejs.org/dist/latest-v22.x/docs/api/cli.html#--env-fileconfig).
30+
Node.js 20 introduced **experimental** [support for .env files](https://nodejs.org/docs/v24.5.0/api/environment_variables.html#env-files).
3131

3232
Now, you can use the `--env-file` flag to specify an environment file when running your Node.js application. Here's an example `.env` file and how to access its variables using `process.env`.
3333

0 commit comments

Comments
 (0)