Skip to content

Conversation

@korinne
Copy link
Contributor

@korinne korinne commented Jun 10, 2025

Summary

adds changelog for new default env vars in workers builds:

Copy link
Contributor

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

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

💡 To request another review, post a new comment with "/windsurf-review".


[Workers Builds](/workers/ci-cd/builds/) connects your Worker to a [Git repository](/workers/ci-cd/builds/git-integration/), and automates building and deploying your code on each pushed change.

To make CI/CD pipelines even more flexible, Workers Builds now automatically injects [default system environment variables](/workers/ci-cd/builds/configuration/#environment-variable) into your build process. You can use these variables to customize your build process based on the deployment context, such as the branch or commit.
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a broken link in line 11. The anchor should be '#environment-variables' (plural) instead of '#environment-variable' (singular) to match the correct anchor used in line 25.

Suggested change
To make CI/CD pipelines even more flexible, Workers Builds now automatically injects [default system environment variables](/workers/ci-cd/builds/configuration/#environment-variable) into your build process. You can use these variables to customize your build process based on the deployment context, such as the branch or commit.
To make CI/CD pipelines even more flexible, Workers Builds now automatically injects [default system environment variables](/workers/ci-cd/builds/configuration/#environment-variables) into your build process. You can use these variables to customize your build process based on the deployment context, such as the branch or commit.

@github-actions
Copy link
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/changelog/ @cloudflare/pm-changelogs, @cloudflare/pcx-cloudflare-one

@github-actions
Copy link
Contributor

github-actions bot commented Jun 10, 2025

Copy link
Contributor

@irvinebroque irvinebroque left a comment

Choose a reason for hiding this comment

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

Think title should have something about git commit/branch - but content lgtm

@@ -0,0 +1,25 @@
---
title: Default system environment variables in Workers Builds
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure I would consider these "default system environment variables" if they are variables related to the git commit/branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the title! We do call them "system environment variables" in the docs, but agreed, not super accurate.

@korinne korinne merged commit 08f9bcc into production Jun 11, 2025
10 checks passed
@korinne korinne deleted the workers-injected-env-vars-changelog branch June 11, 2025 11:41
sdnts pushed a commit to sdnts/cloudflare-docs that referenced this pull request Jul 24, 2025
…#22988)

* adds changelog for new default env vars in workers builds

* mentions that this is a previous Pages feature

* updates title

* Update src/content/changelog/workers/2025-06-10-default-env-vars.mdx

Co-authored-by: Brendan Irvine-Broque <[email protected]>

---------

Co-authored-by: Brendan Irvine-Broque <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants