Skip to content

esamattis/trpc-cloudflare-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tRPC running on a Cloudflare Worker 😎

With the help of https://github.com/valu-digital/npm-packages/tree/master/packages/trpc-fetch-api-adapter

This is bit hacky atm. See trpc/trpc#1375

Running at https://trpc-demo.esamatti.workers.dev/api

Example https://trpc-demo.esamatti.workers.dev/api/hello

Development

Get configure your Cloudflare Wrangler credentials, get pnpm and run:

pnpm install
pnpm run dev

Client

See src/client and run it with

pnpm run run-client

Deploy

Deploy it to *.workers.dev with:

pnpm deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published