-
Hi there, I've just converted a CRA app to Next JS and brought it into Vercel. I already had Sentry running using the @sentry/react package and have switched to the @sentry/nextjs package. I've installed the Sentry integration into Vercel. I ran the Sentry wizard in the workspace to populate the config files. On the Sentry side I've enabled the Vercel integration (both 'Vercel' and 'Vercel Internal Integration'). When I push code in my staging branch (which has the new Sentry config) and trigger a deployment I'm now seeing this error - I have the following env vars set in Vercel -
I can confirm that the SENTRY_AUTH_TOKEN matches the token in the Sentry 'Vercel Internal Integration'. thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've solved my problem. The Sentry env vars were only exposed to Production builds and not Preview builds |
Beta Was this translation helpful? Give feedback.
I've solved my problem. The Sentry env vars were only exposed to Production builds and not Preview builds