Skip to content

Conversation

penalosa
Copy link
Contributor

Fixes #10178 & DEVX-2159

Support containers on Vite auxiliary Workers


  • Tests
    • Tests included
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: bugfix
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: not a Wrangler change

Copy link

changeset-bot bot commented Sep 30, 2025

🦋 Changeset detected

Latest commit: c3b9ecd

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

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

Copy link

pkg-pr-new bot commented Sep 30, 2025

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

wrangler

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

commit: c3b9ecd

Comment on lines +5 to +11
plugins: [
cloudflare({
persistState: false,
configPath: "entry.wrangler.jsonc",
auxiliaryWorkers: [{ configPath: "wrangler.jsonc" }],
}),
],
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 changes this playground so that the container is attached to an auxiliary Worker, with the entrypoint Worker passing through all requests. This means that the existing tests now test both whether containers work in general, and whether they work for auxiliary Workers

@penalosa penalosa marked this pull request as ready for review September 30, 2025 16:29
@penalosa penalosa requested review from a team as code owners September 30, 2025 16:29
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Oct 1, 2025
@penalosa penalosa merged commit 4c509ec into main Oct 2, 2025
40 of 44 checks passed
@penalosa penalosa deleted the penalosa/vite-aux-containers branch October 2, 2025 16:57
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Oct 2, 2025
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.

containers error in multi-worker vite setup
3 participants