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?
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