From 1f05dfea4154ca4a24eb6aed7ac3baa26a4a65c0 Mon Sep 17 00:00:00 2001 From: chappie-daemon Date: Fri, 16 Oct 2026 13:03:10 -0400 Subject: [PATCH 1/2] fix(website): skip the dependents probe when deleting previews MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wrangler delete probes the account's KV namespaces to warn about dependents — a call the deploy token (Workers Scripts scope only) cannot make, so it errored with auth 10000 after the delete had already succeeded. --force skips that probe; preview workers are assets-only with no bindings, so the check is pure overhead. A missing worker still errors and the || echo catches it. --- .github/workflows/deploy-website-preview.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-website-preview.yml b/.github/workflows/deploy-website-preview.yml index a6d2c1237..f1fe09030 100644 --- a/.github/workflows/deploy-website-preview.yml +++ b/.github/workflows/deploy-website-preview.yml @@ -152,8 +152,13 @@ jobs: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} run: | - # A missing worker exits non-zero; treat already-gone as success. - npx wrangler delete --config wrangler.preview.jsonc \ + # --force skips the "would this break dependents" probe, which calls + # KV namespaces listing the deploy token's scope (Workers Scripts + # only) cannot read — the probe errors with auth 10000 AFTER the + # delete has already succeeded. Preview workers are assets-only + # (no bindings), so the check is pure overhead. A missing worker + # still errors and is caught below. + npx wrangler delete --config wrangler.preview.jsonc --force \ --name nostream-web-pr-${{ github.event.pull_request.number }} \ || echo "preview worker already absent" From eaab99965ae8e57468664ea285e58a8ee4d04dad Mon Sep 17 00:00:00 2001 From: chappie-daemon Date: Fri, 16 Oct 2026 13:05:00 -0400 Subject: [PATCH 2/2] chore: add changeset for preview delete --force --- .changeset/preview-delete-force.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/preview-delete-force.md diff --git a/.changeset/preview-delete-force.md b/.changeset/preview-delete-force.md new file mode 100644 index 000000000..35363db7f --- /dev/null +++ b/.changeset/preview-delete-force.md @@ -0,0 +1,5 @@ +--- +"nostream-website": patch +--- + +Preview cleanup no longer trips the deploy token's missing KV scope: wrangler delete runs with --force, skipping the dependents probe that errored after a successful delete. Preview workers are assets-only, so nothing else changes.