feat: trpc integration

This commit is contained in:
2023-07-02 23:17:04 -03:00
parent c67dead763
commit d155350636
12 changed files with 61 additions and 15 deletions

12
packages/client/trpc.ts Normal file
View File

@@ -0,0 +1,12 @@
import { createTRPCProxyClient, httpBatchLink } from '@trpc/client';
import type { AppRouter } from 'server/app';
export const trpc = createTRPCProxyClient<AppRouter>({
links: [
httpBatchLink({
url: 'http://localhost:3000',
}),
],
});
export default trpc;