Skip to content

Conversation

emily-shen
Copy link
Contributor

There is nothing legacy about legacy env, which is extremely confusing. legacy env = true means that we are using regular wrangler environments. legacy env = false means that we are using deprecated service environments.

Unfortunately legacy_env is in our wrangler config schema and cli flags so i can't just rename it to something sensible, but we can translate this in our codebase to something that makes sense.

Thankfully we have a lot of tests for this, although concerningly a lot of tests also seem to default to service environments by default. But i'd prefer to minimise changes to tests in this PR.


  • Tests
    • Tests included
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: internal refactor
  • Wrangler V3 Backport
    • Wrangler PR: todo 😭
    • Not necessary because:

Copy link

changeset-bot bot commented Oct 7, 2025

⚠️ No Changeset found

Latest commit: 19deef3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

pkg-pr-new bot commented Oct 7, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@10903

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@10903

miniflare

npm i https://pkg.pr.new/miniflare@10903

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@10903

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@10903

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@10903

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@10903

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@10903

wrangler

npm i https://pkg.pr.new/wrangler@10903

commit: 19deef3

@emily-shen emily-shen marked this pull request as ready for review October 9, 2025 15:56
@emily-shen emily-shen requested a review from a team as a code owner October 9, 2025 15:56
expect.objectContaining({
...expectedConfig,
main: undefined,
legacy_env: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this change is irrelevant because we will have errored anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Untriaged
Development

Successfully merging this pull request may close these issues.

1 participant