We have self hosted Sentry on sentry.[company].com. For our React app, we’d like to get sourcemaps support.
We are using
sentry-cli tool to upload source files found in
build/static/js/ with the following command:
sentry-cli releases files $GIT_SHA upload-sourcemaps build/static/js/ --url-prefix '~/static/js/' --validate
Our static files are hosted in amazon S3 at:
https://example.com/static/js/6.8419741c.chunk.js and contain the following sourceMappingURL:
We remove the
.map files before uploading our bundle to S3 and instead upload to Sentry with the following --url-prefix:
Although it seems to be the case that Sentry is still trying to fetch the sourcemaps from the Internet - it’s looking for them at
https://example.com/static/js/6.8419741c.chunk.js.map instead of looking in the Artifacts for that release.
What we’ve tried so far:
- We tried a variety of
- We tried only uploading
.mapfiles to Sentry without original
Unfortunately, even when the paths are exact match, Sentry is still trying to fetch them from a remote URL instead of Artifacts.
But still no luck
We’d really appreciate any help at this point!