Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions bunfig.toml

This file was deleted.

3 changes: 3 additions & 0 deletions showcase/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
}
Loading