Skip to content

Commit 7a7072e

Browse files
committed
fix(learn): env var tutorial link to latest docs
Adjust the link in the "How to read environment variables from Node.js" tutorial to refer to the latest version of the API docs and not arbitrarily link to Node.js 22's docs. Fixes #7995
1 parent a008bed commit 7a7072e

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/dist/latest/docs/api/cli.html#--env-fileconfig).
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)