diff --git a/README.md b/README.md index 758e0fe..b6c30d9 100644 --- a/README.md +++ b/README.md @@ -561,16 +561,16 @@ 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 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. +| 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. ## 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..79adbaf 100644 --- a/showcase/wrangler.jsonc +++ b/showcase/wrangler.jsonc @@ -16,4 +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` 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": {}, }