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:Jump to solution
Never mind' i found it, it's in trpcOptions -> onError of the fastifyTRPCPlugin
1 Reply
Solution
Never mind' i found it, it's in trpcOptions -> onError of the fastifyTRPCPlugin