.repos/alchemy-effect/examples/cloudflare-website-tanstack-start
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
Cloudflare Website: TanStack Start#
Deploys a TanStack Start app to Cloudflare
Workers with Cloudflare.Website.Vite — no adapter setup or Wrangler
configuration.
src/routes/index.tsxis server-rendered in the Worker and reads theGREETINGenv value declared inalchemy.run.tsthrough a server function.src/components/Card.tsxis a React component styled with Tailwind utilities, wired through@tailwindcss/vitein the project's ownvite.config.ts.src/routes/api.hello.tsis a server route demonstrating four ways to call into the siblingBackendEffect worker and its R2 bucket: the direct R2 binding, service-bindingfetch, a typed RPC method, and an EffectHttpClientover the service binding.src/backend.tsis that Effect worker — an RPC method plus an HTTP handler overCloudflare.R2.ReadWriteBucket.
Deploy#
bun run deploy
Destroy#
bun run destroy