T
tRPC
What is error formating
What is error formating
Looking for more? Join the community!
T
tRPC
What is error formating
T
tRPC
What is error formating
Recommended Posts
where does opts.path and opts.type came from ? i guess by default it only stores ctx ,next and input```ts
const loggerMiddleware = middleware(async (opts) => {
const start = Date.now();
const rePassing objects to the next() function of the middle ware```ts
// -------------------------------------------------
// @filename: context.ts
// -------------opts object passed to mutation , i can not understand where it came from```ts
export const authorizedProcedure = publicProcedure
.input(z.object({ townName: z.string() })How do I log thrown errors from the query/ mutation on the server side globally?I was surprised to find that the server servicing tRPC requests do not log any thrown errors from a trpc with app dir nextjsHello im wondering how to use trpc with nextjs app router now?.
I have t3 app but for now its a src/if I export 'appRouter' instead of 'router' I get errorhey everyone, I have this exact setup https://icflorescu.github.io/trpc-sveltekit/getting-started
I