Skip to content

Commit bf6cbb4

Browse files
Update Source Maps docs for Remix (#5621)
It's discouraged to upload your source maps to production. Some simple bash commands can be used to remove these after uploading the source maps to Sentry.
1 parent 4f6cc4d commit bf6cbb4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/platform-includes/sourcemaps/overview/javascript.remix.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ Remix can be configured to output source maps using Remix CLI. Learn more about
88

99
Source maps can be uploaded to Sentry by creating a release. Learn more about [how to upload source maps](./uploading/).
1010

11+
12+
### 3: Remove Remix Source Maps
13+
14+
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:
15+
16+
```bash
17+
rm ./public/**/*.map
18+
rm ./build/**/*.map
19+
```
20+
1121
<Note>
1222

1323
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.

0 commit comments

Comments
 (0)