Skip to content

Wrangler support for experimental Build Output API#14324

Merged
jamesopstad merged 10 commits into
mainfrom
james/wrangler-build-output-api
Jun 17, 2026
Merged

Wrangler support for experimental Build Output API#14324
jamesopstad merged 10 commits into
mainfrom
james/wrangler-build-output-api

Conversation

@jamesopstad

@jamesopstad jamesopstad commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Add experimental --experimental-cf-build-output flag to wrangler build

When used alongside --experimental-new-config, wrangler build now emits a self-contained Build Output API directory under .cloudflare/output/v0/ instead of delegating to wrangler deploy --dry-run. This is an experimental feature to support future deployments via the cf CLI.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: experimental feature

A picture of a cute animal (not mandatory, but encouraged)

@changeset-bot

changeset-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8371299

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Minor
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

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

@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

✅ All changesets look good

@pkg-pr-new

pkg-pr-new Bot commented Jun 16, 2026

Copy link
Copy Markdown
create-cloudflare

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

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@14324

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@14324

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@14324

wrangler

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

commit: 78e0e2e

@ask-bonk

ask-bonk Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@jamesopstad Bonk workflow was cancelled.

View workflow run · To retry, trigger Bonk again.

@jamesopstad jamesopstad force-pushed the james/wrangler-build-output-api branch 2 times, most recently from 1dfdc5d to 8840dfc Compare June 16, 2026 14:11
@jamesopstad jamesopstad marked this pull request as ready for review June 16, 2026 14:48
@workers-devprod workers-devprod requested review from a team and dario-piotrowicz and removed request for a team June 16, 2026 14:48
@workers-devprod

workers-devprod commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@jamesopstad jamesopstad requested review from emily-shen and penalosa and removed request for dario-piotrowicz June 16, 2026 14:49
devin-ai-integration[bot]

This comment was marked as resolved.

@jamesopstad jamesopstad force-pushed the james/wrangler-build-output-api branch from 2b3b3f3 to 69051f0 Compare June 16, 2026 15:16
Comment thread .changeset/wrangler-experimental-cf-build-output.md Outdated
Comment thread packages/config/src/build-output.ts
Comment thread packages/config/src/schema.ts
Comment thread packages/vite-plugin-cloudflare/src/__tests__/build-output.spec.ts Outdated
Comment thread packages/vite-plugin-cloudflare/src/__tests__/build-output.spec.ts Outdated
Comment thread packages/vite-plugin-cloudflare/src/plugin-config.ts

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 2 new potential issues.

Open in Devin Review

Comment thread packages/wrangler/src/deployment-bundle/merge-config-args.ts Outdated
Comment thread packages/wrangler/src/deployment-bundle/build-output.ts
@jamesopstad jamesopstad force-pushed the james/wrangler-build-output-api branch 2 times, most recently from 1886865 to 78e0e2e Compare June 17, 2026 08:08
@jamesopstad jamesopstad force-pushed the james/wrangler-build-output-api branch from 78e0e2e to 8371299 Compare June 17, 2026 08:19

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Jun 17, 2026
@jamesopstad jamesopstad merged commit 36777db into main Jun 17, 2026
59 of 61 checks passed
@jamesopstad jamesopstad deleted the james/wrangler-build-output-api branch June 17, 2026 12:46
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants