Skip to content
Source
Sign inSign up

.repos/alchemy-effect/examples/cloudflare-website-tanstack-start

Contents of .repos/alchemy-effect/examples/cloudflare-website-tanstack-start
NameLast commit messageLast commit date
..
src (directory)
test (directory)
.gitignore
alchemy.run.ts
package.json
README.md
tsconfig.json
vite.config.ts

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.tsx is server-rendered in the Worker and reads the GREETING env value declared in alchemy.run.ts through a server function.
  • src/components/Card.tsx is a React component styled with Tailwind utilities, wired through @tailwindcss/vite in the project's own vite.config.ts.
  • src/routes/api.hello.ts is a server route demonstrating four ways to call into the sibling Backend Effect worker and its R2 bucket: the direct R2 binding, service-binding fetch, a typed RPC method, and an Effect HttpClient over the service binding.
  • src/backend.ts is that Effect worker — an RPC method plus an HTTP handler over Cloudflare.R2.ReadWriteBucket.

Deploy

bun run deploy

Destroy

bun run destroy