Skip to content

Commit

Permalink
fix: error log keep showing-off
Browse files Browse the repository at this point in the history
  • Loading branch information
elskow committed Dec 21, 2023
1 parent eb9e939 commit 17de4f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ export const api = createTRPCNext<AppRouter>({
*/
links: [
loggerLink({
enabled: (opts) =>
process.env.NODE_ENV === 'development' ||
(opts.direction === 'down' &&
opts.result instanceof Error) ||
process.env.NODE_ENV !== 'production',
enabled: (_) => false,
}),
httpBatchLink({
url: `${getBaseUrl()}/api/trpc`,
Expand Down

0 comments on commit 17de4f4

Please sign in to comment.