mirror of
https://github.com/FranP-code/spend-ia.git
synced 2025-10-13 00:14:09 +00:00
feat: trpc integration
This commit is contained in:
12
packages/client/trpc.ts
Normal file
12
packages/client/trpc.ts
Normal 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;
|
||||
Reference in New Issue
Block a user