From 9fd401294568a6155d97be52a6f2788f146a766d Mon Sep 17 00:00:00 2001 From: Duncan Crawbuck Date: Tue, 30 Jun 2026 12:03:43 -0700 Subject: [PATCH] fix(ci): keep Cloudflare preview URLs enabled across deploys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wrangler >=4.44 defaults per-version Preview URLs to match the workers_dev setting when preview_urls isn't set explicitly. This worker has workers_dev: false, so every deploy (each branch build runs 'wrangler versions upload') reset Preview URLs back to disabled, requiring a manual dashboard re-enable that the next build undid. Set preview_urls: true so PR/branch preview URLs persist across deploys. Enables preview URLs only — the production workers.dev route stays off. --- wrangler.jsonc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wrangler.jsonc b/wrangler.jsonc index 98144c43..5c3edb4a 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -8,6 +8,10 @@ "global_fetch_strictly_public" ], "workers_dev": false, + // Keep per-version Preview URLs on for PR/branch builds. Wrangler >=4.44 otherwise + // defaults preview URLs to match `workers_dev` (false), so each deploy silently + // disables the dashboard toggle. This enables previews only, not the prod workers.dev route. + "preview_urls": true, "placement": { "mode": "smart" },