-
I use Remix along with Sentry's source map support. https://docs.sentry.io/platforms/javascript/guides/remix/ This is extremely useful! I initially thought it would be this way. a) Source code to upload to Sentry. b) Source code to actually run on the server However, the file names in a) and b) do not match in this way. e.g. Without source map Therefore, you need to generate b) with Also, when I run Even if you are careful not to hardcode the secret as described in this warning, it is still a bit scary.... #355 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
After the build, upload the source maps to Sentry, then remove it from the public/build folder and deploy. |
Beta Was this translation helpful? Give feedback.
-
@convcha did you end up removing the source maps? |
Beta Was this translation helpful? Give feedback.
-
This fixed it for me. Instead of doing (in "build": "remix build --sourcemaps && sentry-upload-sourcemaps --release $SENTRY_RELEASE", I do the following: "build": "remix build --sourcemap",
"upload-sourcemaps": "sentry-upload-sourcemaps --release $SENTRY_RELEASE --urlPrefix \"~/client-build/\" --buildPath \"build/client\" && sentry-upload-sourcemaps --release $SENTRY_RELEASE --urlPrefix \"~/server-build/\" --buildPath \"build/server\" --deleteAfterUpload false" and then during the build process, I do The only other issue that affects me is that Sentry wraps Remix's
Hopefully this helps someone else, or someone can point out something I'm doing incorrectly! |
Beta Was this translation helpful? Give feedback.
After the build, upload the source maps to Sentry, then remove it from the public/build folder and deploy.