DEV Community

Discussion on: Add Sentry to Vercel Next.js API Routes

Collapse
 
vvo profile image
Vincent Voyer

Hey there, do you know if this can be achieved without having to warp the full route in a try catch? I thought Sentry would just work by default without having to try catch the whole route.

Collapse
 
vvo profile image
Vincent Voyer

Ok found out that it's documented in the with-sentry example: github.com/vercel/next.js/blob/57e...