9 lines
283 B
TypeScript
9 lines
283 B
TypeScript
import type { paths } from '@/openapi-types';
|
|||
|
|
import createFetchClient from 'openapi-fetch';
|
||
|
|
import createClient from 'openapi-react-query';
|
||
|
|
|
||
|
|
const fetchClient = createFetchClient<paths>({
|
||
|
|
baseUrl: process.env.NEXT_PUBLIC_API_URL,
|
||
|
|
});
|
||
|
|
export const rpc = createClient(fetchClient);
|