.repos/alchemy-effect/examples/cloudflare-website-vite
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
Cloudflare Website: Vite#
Deploys a Vite React SPA to Cloudflare Workers with
Cloudflare.Website.Vite β no main entry, build command, or Wrangler
configuration. Alchemy runs Vite with the project's own
vite.config.ts, merging its Cloudflare integration on top, and serves
the client assets from a Worker. The page renders entirely in the
browser.
src/main.tsxmounts the React app intoindex.html.- Tailwind CSS v4 is wired through
@tailwindcss/vitein the project's ownvite.config.ts, which Alchemy loads natively β plugins included.
Deploy#
bun install
bun run deploy
Unchanged sources skip the Vite build entirely on subsequent deploys β
the input files are content-hashed (scoped by memo.include).
Local development#
bun run dev
alchemy dev runs Vite's own dev server (HMR included) behind Alchemy's
local proxy.
Destroy#
bun run destroy