ylliX - Online Advertising Network
Vertex AI - Antrophic and Mistral models: Why does it require Imegen access?

Sentry/Next.ts working perfectly fine locally but not in prod


I’m trying to incorporate Sentry v8 to my Next.ts v14 project, I’m having a very weird issue where my sentry works perfectly fine locally but when in production, it only works in a few instances. The sentry example and any throw error at top level work. Any errors in useEffect or server actions aren’t sent to Sentry, even though in dev, they are. Also the sourcemaps are uploaded without any issues.

I don’t know if specific configs need to be done to make sentry work in production, I haven’t seen anything on that subject in the documentations. I wounder if the issue is linked to my traefik configs which are slightly different than in dev.

I’ve tried testing the sentry config files, adding debug=true, and a console.log in a beforeSend action. Debug did show up in my logs but couldn’t find any errors when it should, even for errors that did manage to be sent. beforeSend action did not console log anything, but does in dev.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *