Skip to content

Commit 0655d8f

Browse files
committed
Updates link to process env docs
1 parent 2562375 commit 0655d8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/content/changelog/workers/2025-03-11-process-env-support.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Access your Worker's environment variables from process.env
33
description: With Node.js compatability on, process.env is automatically populated with environment variables and secrets
44
products:
55
- workers
6-
date: 2025-03-11T17:00:00Z
6+
date: 2025-03-11T15:00:00Z
77
---
88

99
You can now access [environment variables](/workers/configuration/environment-variables/) and

src/content/docs/workers/runtime-apis/nodejs/process.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ nextTick(() => {
2828

2929
In the Node.js implementation of `process.env`, the `env` object is a copy of the environment variables at the time the process was started. In the Workers implementation, there is no process-level environment, so by default `env` is an empty object. You can still set and get values from `env`, and those will be globally persistent for all Workers running in the same isolate and context (for example, the same Workers entry point).
3030

31-
When [Node.js compatability](/workers/runtime-apis/nodejs/) is turned on and the [`nodejs_compat_populate_process_env`](/workers/configuration/compatibility-flags/#nodejs-compat-populate-process-env) compatability flag is set, `process.env` will contain any [environment variables](/workers/configuration/environment-variables/),
31+
When [Node.js compatability](/workers/runtime-apis/nodejs/) is turned on and the [`nodejs_compat_populate_process_env`](/workers/configuration/compatibility-flags/#enable-auto-populating-processenv) compatability flag is set, `process.env` will contain any [environment variables](/workers/configuration/environment-variables/),
3232
[secrets](/workers/configuration/secrets/), or [version metadata](/workers/runtime-apis/bindings/version-metadata/) metadata that has been configured on your Worker.
3333

3434
### Relationship to per-request `env` argument in `fetch()` handlers

0 commit comments

Comments
 (0)