BarakondaB
tRPC3y ago
2 replies
Barakonda

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
Was this page helpful?