plugins/trpc #512
Replies: 1 comment
-
const app = new Elysia()
.all('/trpc/*', async (opts) => {
const res = await fetchRequestHandler({
endpoint: '/trpc',
router: router,
req: opts.request,
createContext() {
return {};
},
});
return res;
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
plugins/trpc
Plugin for Elysia that adds support for using tRPC on Bun with Elysia Server. Start by installing the plugin with "bun add @elysiajs/trpc".
https://elysiajs.com/plugins/trpc
Beta Was this translation helpful? Give feedback.
All reactions