tRPCttRPC
Powered by
BarakondaB
tRPC•3y 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
Jump to solution
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Equivalent to middleware on createNextApiHandler
NotLuksusNNotLuksus / ❓-help
2y ago
Is It Possible to use methodOverride with createNextApiHandler?
Sami Mis'halSSami Mis'hal / ❓-help
2y ago
RateLimiter for fastify tRPC routes
KimblisKKimblis / ❓-help
3y ago