t3-code-android-nightly/.repos/alchemy-effect/examples/cloudflare-website-vite
Julius Marminge e3c85ead63
chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-17 23:21:25 -07:00
..
src chore(refs): sync Alchemy reference to beta.76 (#10654) 2026-09-07 21:54:45 -07:00
test chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327) 2026-09-17 23:21:25 -07:00
alchemy.run.ts chore(refs): sync Alchemy reference to beta.76 (#10654) 2026-09-07 21:54:45 -07:00
index.html chore(refs): sync Alchemy reference to beta.76 (#10654) 2026-09-07 21:54:45 -07:00
package.json chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327) 2026-09-17 23:21:25 -07:00
README.md chore(refs): sync Alchemy reference to beta.76 (#10654) 2026-09-07 21:54:45 -07:00
tsconfig.json chore(refs): sync Alchemy reference to beta.76 (#10654) 2026-09-07 21:54:45 -07:00
vite.config.ts chore(refs): sync Alchemy reference to beta.76 (#10654) 2026-09-07 21:54:45 -07:00

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.tsx mounts the React app into index.html.
  • Tailwind CSS v4 is wired through @tailwindcss/vite in the project's own vite.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