t3-code-android-nightly/.repos/alchemy-effect/examples/cloudflare-website-tanstack-start
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00
..
src chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170) 2026-10-05 13:22:30 -07:00
test chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170) 2026-10-05 13:22:30 -07:00
.gitignore chore(refs): sync Alchemy reference to beta.76 (#10654) 2026-09-07 21:54:45 -07:00
alchemy.run.ts chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327) 2026-09-17 23:21:25 -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: 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