diff --git a/src/platform-includes/sourcemaps/overview/javascript.remix.mdx b/src/platform-includes/sourcemaps/overview/javascript.remix.mdx index e061356509804..5590f613d1076 100644 --- a/src/platform-includes/sourcemaps/overview/javascript.remix.mdx +++ b/src/platform-includes/sourcemaps/overview/javascript.remix.mdx @@ -8,6 +8,16 @@ Remix can be configured to output source maps using Remix CLI. Learn more about Source maps can be uploaded to Sentry by creating a release. Learn more about [how to upload source maps](./uploading/). + +### 3: Remove Remix Source Maps + +Remix validly discourages the user to have source maps in production. After uploading the maps to Sentry we suggest you delete the `.map` files, here's a simple example in bash: + +```bash +rm ./public/**/*.map +rm ./build/**/*.map +``` + By default, if Sentry can't find the uploaded files it needs, it will attempt to download them from the URLs in the stack trace. To disable this, turn off "Enable JavaScript source fetching" in either your organization's "Security & Privacy" settings or your project's general settings.