soline init

This commit is contained in:
2026-07-28 19:10:12 +05:30
commit 22c9e2d1c4
54 changed files with 5532 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import {
createTRPCProxyClient,
httpBatchLink,
loggerLink,
} from '@trpc/client';
import { AppRouter } from "~/trpc/api/root";
import { getBaseUrl } from '~/utils/url';
// create the client, export it
export const api = createTRPCProxyClient<AppRouter>({
links: [
// will print out helpful logs when using client
// loggerLink(),
// identifies what url will handle trpc requests
httpBatchLink({ url: `${getBaseUrl()}/api/trpc` })
],
});