From 8016e97dff5b5c5942c3e9899d7c6a17b25da5d2 Mon Sep 17 00:00:00 2001 From: Jean Gerard Bousiquot Date: Sun, 6 Dec 2026 01:03:10 -0500 Subject: [PATCH 1/3] Showcase previews block; drop minimumReleaseAge - showcase/wrangler.jsonc: an empty "previews" block. `wrangler preview`, which builds every branch except `showcase`, refuses to run without it, so every PR's kit-showcase check failed. - bunfig.toml removed: its only setting was minimumReleaseAge = "3d". Owner's rule of 2026-12-06: new package versions are used at once, as in the starter (jgb-starter#184). Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- bunfig.toml | 4 ---- showcase/wrangler.jsonc | 2 ++ 3 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 bunfig.toml diff --git a/README.md b/README.md index 758e0fe..278bab8 100644 --- a/README.md +++ b/README.md @@ -570,7 +570,7 @@ How the showcase is deployed: it is a Cloudflare Worker with static assets only | Preview command (other branches) | `bunx --bun wrangler@4.170.0 preview --config showcase/wrangler.jsonc` | | Variables | `CF_BEACON_TOKEN` (the Web Analytics site token; it is public, it sits in the page), `WRANGLER_SEND_METRICS=false` | -Bun's version comes from `packageManager` in `package.json`. Wrangler is pinned in the commands rather than installed here, so this package's own installs stay small; raise it by hand, to a version at least three days old. +Bun's version comes from `packageManager` in `package.json`. Wrangler is pinned in the commands rather than installed here, so this package's own installs stay small; raise it by hand. ## Publishing diff --git a/bunfig.toml b/bunfig.toml deleted file mode 100644 index cd955cd..0000000 --- a/bunfig.toml +++ /dev/null @@ -1,4 +0,0 @@ -[install] -# New package versions wait three days before Bun installs them, so hijacked releases are usually -# caught first. This package ships to other apps: keep its own dependencies on that rule. -minimumReleaseAge = "3d" diff --git a/showcase/wrangler.jsonc b/showcase/wrangler.jsonc index e8c724b..06e031d 100644 --- a/showcase/wrangler.jsonc +++ b/showcase/wrangler.jsonc @@ -16,4 +16,6 @@ // The production site is the custom domain only; pull requests get their own preview addresses. "workers_dev": false, "preview_urls": true, + // `wrangler preview` (the build of every branch but `showcase`) needs this block, even empty. + "previews": {}, } From 8da8aae04cf9a21cf4122e38d83734af6f0bfa37 Mon Sep 17 00:00:00 2001 From: Jean Gerard Bousiquot Date: Sun, 6 Dec 2026 01:07:37 -0500 Subject: [PATCH 2/3] Showcase branch builds: wrangler versions upload, not wrangler preview wrangler preview (an open beta) uploads _headers as a Worker module and fails with code 10021 (cloudflare/workers-sdk#15791); versions upload deploys the same output and gives the preview URL. The setting itself is in Cloudflare's Workers Builds settings; the README records it. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- showcase/wrangler.jsonc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 278bab8..204deb7 100644 --- a/README.md +++ b/README.md @@ -567,7 +567,7 @@ How the showcase is deployed: it is a Cloudflare Worker with static assets only | Root directory | `/` | | Build command | `bun run build:showcase` | | Deploy command | `bunx --bun wrangler@4.170.0 deploy --config showcase/wrangler.jsonc` | -| Preview command (other branches) | `bunx --bun wrangler@4.170.0 preview --config showcase/wrangler.jsonc` | +| Preview command (other branches) | `bunx --bun wrangler@4.170.0 versions upload --config showcase/wrangler.jsonc` | | Variables | `CF_BEACON_TOKEN` (the Web Analytics site token; it is public, it sits in the page), `WRANGLER_SEND_METRICS=false` | Bun's version comes from `packageManager` in `package.json`. Wrangler is pinned in the commands rather than installed here, so this package's own installs stay small; raise it by hand. diff --git a/showcase/wrangler.jsonc b/showcase/wrangler.jsonc index 06e031d..79adbaf 100644 --- a/showcase/wrangler.jsonc +++ b/showcase/wrangler.jsonc @@ -16,6 +16,7 @@ // The production site is the custom domain only; pull requests get their own preview addresses. "workers_dev": false, "preview_urls": true, - // `wrangler preview` (the build of every branch but `showcase`) needs this block, even empty. + // `wrangler preview` needs this block, even empty. Branch builds use `wrangler versions upload` instead + // (README, "Developing"): `wrangler preview` uploads `_headers` as a module (cloudflare/workers-sdk#15791). "previews": {}, } From 698396421626114b76e73a4524b9ed8f297a46ff Mon Sep 17 00:00:00 2001 From: Jean Gerard Bousiquot Date: Sun, 6 Dec 2026 01:14:05 -0500 Subject: [PATCH 3/3] README: name the showcase setting as Cloudflare does (non-production branch deploy command) Co-Authored-By: Claude Opus 5.5 --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 204deb7..b6c30d9 100644 --- a/README.md +++ b/README.md @@ -561,14 +561,14 @@ The showcase (`showcase/`): the public site that shows kit/tokens and kit/ui liv How the showcase is deployed: it is a Cloudflare Worker with static assets only (`showcase/wrangler.jsonc`), built and deployed by Cloudflare's Git integration (Workers Builds), not from this repository's workflows, so no Cloudflare token is stored here. It shows what is on npm, not what is on `main`: `.github/workflows/showcase.yml` moves the `showcase` branch to a release's tag when the release is published (or by hand, for any tag), and Cloudflare deploys that branch. Every other branch gets a preview address, built with the same commands and kept out of search engines (`robots.txt`, `X-Robots-Tag`) and out of the analytics. The build's settings in Cloudflare: -| Setting | Value | -| -------------------------------- | ------------------------------------------------------------------------------------------------------------------ | -| Production branch | `showcase` | -| Root directory | `/` | -| Build command | `bun run build:showcase` | -| Deploy command | `bunx --bun wrangler@4.170.0 deploy --config showcase/wrangler.jsonc` | -| Preview command (other branches) | `bunx --bun wrangler@4.170.0 versions upload --config showcase/wrangler.jsonc` | -| Variables | `CF_BEACON_TOKEN` (the Web Analytics site token; it is public, it sits in the page), `WRANGLER_SEND_METRICS=false` | +| Setting | Value | +| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| Production branch | `showcase` | +| Root directory | `/` | +| Build command | `bun run build:showcase` | +| Deploy command | `bunx --bun wrangler@4.170.0 deploy --config showcase/wrangler.jsonc` | +| Non-production branch deploy command | `bunx --bun wrangler@4.170.0 versions upload --config showcase/wrangler.jsonc` | +| Variables | `CF_BEACON_TOKEN` (the Web Analytics site token; it is public, it sits in the page), `WRANGLER_SEND_METRICS=false` | Bun's version comes from `packageManager` in `package.json`. Wrangler is pinned in the commands rather than installed here, so this package's own installs stay small; raise it by hand.