You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"How to read environment variables from Node.js" points to the Node.js 22 documentation #7995
The sentence "Node.js 20 introduced experimental support for .env files" links to the Node.js 22 documentation, which makes little sense - if the intent was to link to the version this feature was introduced, it should link to Node.js 20's documentation, and if it was to link to the latest available version it should link to latest, not latest-22.x.
From the context, it looks like the intention was the latter.
No it's not arbitrary. It's voluntary done in #7307
Why ? Because maintaining the learn section is complicated. So do not have broken docs/exmaple we decide to ping it to a version. this sub section use 22
Why not update it to 24 but you have to verify everything.
Thanks for the added context! Looking at the discussion on the PR, it seems the consensus is forming around changing this link entirely to the newly written section about env vars.
Activity
fix(learn): env var tutorial link to latest docs
AugustinMauroy commentedon Jul 19, 2025
as explained in your pr
No it's not arbitrary. It's voluntary done in #7307
Why ? Because maintaining the learn section is complicated. So do not have broken docs/exmaple we decide to ping it to a version. this sub section use 22
Why not update it to 24 but you have to verify everything.
Also for more context take a look at https://nodejs.org/en/blog/events/collab-summit-2024-dublin#documentation-improvements-nodejs-learn-section
AugustinMauroy commentedon Jul 19, 2025
but maybe modify "Node.js 20 introduced experimental support for .env files." by "since Node.js 20 you have the ability to ...e
mureinik commentedon Jul 21, 2025
Thanks for the added context! Looking at the discussion on the PR, it seems the consensus is forming around changing this link entirely to the newly written section about env vars.
fix(learn): env var tutorial link to Environment Variables docs
fix(learn): env var tutorial link to latest docs (#7996)