mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 01:32:06 +10:00
fix: wip
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
'use client';
|
||||
|
||||
import { useState } from 'react';
|
||||
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
@ -7,6 +5,8 @@ import { httpBatchLink, httpLink, splitLink } from '@trpc/client';
|
||||
import { createTRPCReact } from '@trpc/react-query';
|
||||
import SuperJSON from 'superjson';
|
||||
|
||||
import { getBaseUrl } from '@documenso/lib/universal/get-base-url';
|
||||
|
||||
// import { getBaseUrl } from '@documenso/lib/universal/get-base-url';
|
||||
import type { AppRouter } from '../server/router';
|
||||
|
||||
@ -36,10 +36,6 @@ export interface TrpcProviderProps {
|
||||
headers?: Record<string, string>;
|
||||
}
|
||||
|
||||
// 'next-runtime-env
|
||||
// Todo
|
||||
const getBaseUrl = () => 'http://localhost:3000';
|
||||
|
||||
export function TrpcProvider({ children, headers }: TrpcProviderProps) {
|
||||
const [queryClient] = useState(() => new QueryClient());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user