Skip to content

Document the process.env handling and compat flags#19187

Merged
jasnell merged 1 commit intocloudflare:productionfrom
jasnell:jasnell/doc-process-env
Aug 12, 2025
Merged

Document the process.env handling and compat flags#19187
jasnell merged 1 commit intocloudflare:productionfrom
jasnell:jasnell/doc-process-env

Conversation

@jasnell
Copy link
Copy Markdown
Contributor

@jasnell jasnell commented Jan 14, 2025

Refs: cloudflare/workerd#3311

Summary

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

hyperlint-ai-deprecated[bot]

This comment was marked as outdated.

Comment thread src/content/compatibility-flags/process-env.md Outdated
Comment thread src/content/docs/workers/configuration/environment-variables.mdx Outdated
Comment thread src/content/docs/workers/configuration/environment-variables.mdx
Comment thread src/content/docs/workers/runtime-apis/nodejs/process.mdx Outdated
Comment thread src/content/docs/workers/runtime-apis/nodejs/process.mdx Outdated
Comment thread src/content/docs/workers/runtime-apis/nodejs/process.mdx
Copy link
Copy Markdown
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

I added inline comments.

It would be great to add details to https://developers.cloudflare.com/workers/configuration/secrets/ -> mention the flag and process.env

Thanks

Comment thread src/content/compatibility-flags/process-env.md Outdated
Comment thread src/content/docs/workers/configuration/environment-variables.mdx Outdated
Comment thread src/content/docs/workers/runtime-apis/nodejs/process.mdx Outdated
Comment thread src/content/docs/workers/runtime-apis/nodejs/process.mdx Outdated
hyperlint-ai-deprecated[bot]

This comment was marked as outdated.

hyperlint-ai-deprecated[bot]

This comment was marked as outdated.

hyperlint-ai-deprecated[bot]

This comment was marked as outdated.

Comment thread src/content/compatibility-flags/process-env.md Outdated
Comment thread src/content/docs/workers/configuration/environment-variables.mdx Outdated
Comment thread src/content/docs/workers/runtime-apis/nodejs/process.mdx Outdated
@jasnell jasnell force-pushed the jasnell/doc-process-env branch from e4e19ef to 9220bba Compare July 31, 2025 17:05
@jasnell jasnell requested a review from vicb July 31, 2025 17:06
Comment thread src/content/compatibility-flags/process-env.md Outdated
Comment thread src/content/docs/workers/configuration/environment-variables.mdx
Comment thread src/content/docs/workers/configuration/secrets.mdx Outdated
Comment thread src/content/docs/workers/configuration/environment-variables.mdx Outdated
Comment thread src/content/docs/workers/runtime-apis/nodejs/process.mdx Outdated
Comment thread src/content/docs/workers/configuration/environment-variables.mdx Outdated
Comment thread src/content/compatibility-flags/process-env.md Outdated
Comment thread src/content/docs/workers/runtime-apis/nodejs/process.mdx Outdated
Copy link
Copy Markdown
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

What would be awesome is to document disallow_importable_env as well.

That is:

  • Create a file in src/content/compatibility-flags/
  • Link the flag where it is referenced in the content.

Thanks for documenting this 🎉

@jasnell
Copy link
Copy Markdown
Contributor Author

jasnell commented Jul 31, 2025

I will add disallow_importable_env in a separate PR (will add it here: #24083)

Comment thread src/content/docs/workers/configuration/secrets.mdx Outdated
Comment thread src/content/docs/workers/runtime-apis/nodejs/process.mdx Outdated
Comment thread src/content/docs/workers/runtime-apis/nodejs/process.mdx Outdated
Comment thread src/content/docs/workers/configuration/secrets.mdx Outdated
Comment thread src/content/docs/workers/configuration/secrets.mdx Outdated
@jasnell jasnell force-pushed the jasnell/doc-process-env branch from 4eb6c56 to c2f757e Compare August 12, 2025 22:40
@jasnell jasnell enabled auto-merge (squash) August 12, 2025 22:43
@jasnell jasnell merged commit e5285f0 into cloudflare:production Aug 12, 2025
2 checks passed
@github-actions github-actions Bot deleted the jasnell/doc-process-env branch April 8, 2026 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants