Repository navigation
Conversation
🦋 Changeset detectedLatest commit: 1917c7b The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/runtime-types
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
| bindings: { | ||
| ...(workerOptions.bindings as V4WorkerOptions["bindings"]), | ||
| ...overrides?.vars, | ||
| ...overrides?.secrets, | ||
| }, | ||
| serviceBindings: { |
There was a problem hiding this comment.
unstable_getMiniflareWorkerOptions() applies getVarsForDev(), so the bindings copied here include values from a root .dev.vars or .env file. This mode is meant to run the emitted Build Output settings, but a local MESSAGE=dev will replace the build's env.MESSAGE even without workerOverrides. Source these scalar bindings from the generated config instead, then apply the explicit test overrides.
| bindings: { | |
| ...(workerOptions.bindings as V4WorkerOptions["bindings"]), | |
| ...overrides?.vars, | |
| ...overrides?.secrets, | |
| }, | |
| serviceBindings: { | |
| bindings: { | |
| ...config.vars, | |
| ...overrides?.vars, | |
| ...overrides?.secrets, | |
| }, |
|
I'm Bonk, and I've done a quick review of your PR. Adds Build Output API support to
|
|
@penalosa is this change still needed or can this be closed? |
|
Closing in favor of #16798. |
Add
createTestHarness({ buildOutput: true })to run the Worker modules and assets emitted in.cloudflare/output/v0directly in Miniflare. Requests and Worker handles use the same runtime, including scheduled events, storage, updates, and resets. Source Worker projects continue to use the existing DevEnv path.Build Output container images are not started locally.
Validation: 37
createTestHarnessE2E tests passed; Wrangler build and type checks, changed-file lint and format checks, andgit diff --checkpassed.Note
This is a contribution from an AI agent: Codex (GPT-6).