Is there a way to disable auto upload of source maps? #3319
-
Is there like a flag or property or something of sorts, that allows us to disable the auto upload of sourcemaps? I noticed that sometimes I end up doing a production build, just to test locally, and it always uploads the sourcemaps, which overrides the one in the Sentry server, and if I am testing some code changes, then any future error logs will show with an incorrect stack error, because it doesn't match the release in production. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, thank you for the question, At the moment you can achieve similar behavior by removing your auth token and allow Sentry to fail as described in https://docs.sentry.io/platforms/react-native/troubleshooting/#failing-build-due-to-se |
Beta Was this translation helpful? Give feedback.
-
any updates? |
Beta Was this translation helpful? Give feedback.
Yes,
export SENTRY_DISABLE_AUTO_UPLOAD=true
is now available for both RN on iOS and Android to quickly disable auto uploads of any debug files including source maps to Sentry.https://docs.sentry.io/platforms/react-native/sourcemaps/#disable-automatic-upload