export const serverToServerApi = createTRPCProxyClient<AppRouter>({ transformer, links: [ httpLink({ url: getUrl(), fetch: async (input, init) => { console.log("fetch", input, init); const res = await fetch(input, init); console.log("RES", res); return fetch(input, init); }, headers() { return { "x-trpc-source": "server", Authorization: `Bearer ${env.SERVER_API_KEY}`, }; }, }), ],});
void serverToServerApi.ai.newMembers.mutate({ roomId: room.id, preferenceIds: [insertResult[0].id], });
TRPCClientError: Unexpected end of JSON input