Barakonda
Barakonda13mo ago

Is there a similar handler to createNextApiHandler for fastify?

I'm trying to create a global error handler in fatsify but I can't find anything. Is this even a thing or do I need to use a middleware?
Solution:
Never mind' i found it, it's in trpcOptions -> onError of the fastifyTRPCPlugin
Jump to solution
1 Reply
Solution
Barakonda
Barakonda13mo ago
Never mind' i found it, it's in trpcOptions -> onError of the fastifyTRPCPlugin