[chrome-devtools-patches] Migrate deployment from Cloudflare Pages to Workers + Assets#12928
Merged
petebacondarwin merged 3 commits intomainfrom Mar 17, 2026
Merged
Conversation
🦋 Changeset detectedLatest commit: 32746c3 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 |
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers |
Contributor
|
✅ All changesets look good |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
… Workers + Assets
1da8f54 to
a624a12
Compare
Contributor
|
The Wrangler DevTools preview is now live. You can access it directly at: https://f9beee64-cloudflare-devtools.devprod.workers.dev/js_app In order to test the DevTools preview in
|
penalosa
approved these changes
Mar 16, 2026
macOS BSD sed does not support \S in extended regex mode (-E). Replace with [^[:space:]] which is POSIX ERE compatible.
Contributor
Author
|
Tested with the preview version and a local Wrangler dev session was able to connect ... |
petebacondarwin
commented
Mar 17, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates the chrome-devtools-patches project from Cloudflare Pages to Cloudflare Workers + Assets.
Changes
wrangler.jsonc: Assets-only Worker config withpreview_urls: trueandworkers_dev: truewrangler deploy; newpublish-previewtarget useswrangler versions upload(uploads without activating in production)package.json: Newdeploy:previewscript for PR preview deploymentsdeploy-previews.yml: Usesdeploy:previewinstead ofdeployfor PR previews; URL extraction updated from Pages format (Take a peek over at) to Workers format (Version Preview URL:)workers.devregex patterns to bothInspectorProxyWorker.tsandinspector-proxy-controller.ts, while retaining the legacypages.devpatterns for backward compatibilityTesting
This can be tested without changing the
devtools.devprod.cloudflare.devcustom domain:1. Preview deploy (via this PR)
The
preview:chrome-devtools-patcheslabel has been added to trigger the deploy-previews workflow. Once complete, a comment will appear with the Version Preview URL. Verify:<preview-url>/js_appin a browser — the DevTools frontend should load2. End-to-end WebSocket test
To verify the new
workers.devorigin is accepted by the inspector proxy:wrangler devon any Worker locallydto open DevTools (opensdevtools.devprod.cloudflare.dev/js_app?ws=...)workers.devURL after production deploy), keeping all query params3. Production deploy
After merge, the changesets workflow will run
wrangler deploy, making the Worker live at:Verify the same way as step 1 and 2 above using the
workers.devURL.Post-merge steps
devtools.devprod.cloudflare.devfrom the Pages project to the new Worker in the Cloudflare dashboard