Skip to content

Commit

Permalink
fix: allow trpc instance outside of server (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
resir014 authored Jan 29, 2025
1 parent 76ad377 commit 1b1ed22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/trpc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { initTRPC } from '@trpc/server';

const t = initTRPC.context().create({
allowOutsideOfServer: true,
errorFormatter(opts) {
const { shape } = opts;
return {
Expand Down

0 comments on commit 1b1ed22

Please sign in to comment.