Skip to content

Commit

Permalink
tRPC: don't repeat curl debug
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Nov 2, 2023
1 parent 3dc94c7 commit 2db5fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/api/trpc.serverutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function createFetcherFromTRPC<TPostBody, TOut>(parser: (response: Response) =>
let response: Response;
try {
if (SERVER_DEBUG_WIRE)
console.log('-> tRPC curl', debugGenerateCurlCommand(method, url, headers, body as any));
console.log('-> tRPC', debugGenerateCurlCommand(method, url, headers, body as any));
response = await fetch(url, { method, headers, ...(body !== undefined ? { body: JSON.stringify(body) } : {}) });
} catch (error: any) {
console.error(`[${moduleName} Fetch Error]:`, error);
Expand Down

1 comment on commit 2db5fd5

@vercel
Copy link

@vercel vercel bot commented on 2db5fd5 Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

big-agi – ./

get.big-agi.com
big-agi-enricoros.vercel.app
big-agi-git-main-enricoros.vercel.app

Please sign in to comment.