Skip to content

Commit

Permalink
Update Source Maps docs for Remix (#5621)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thomasverleye committed Oct 10, 2022
1 parent 4f6cc4d commit bf6cbb4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/platform-includes/sourcemaps/overview/javascript.remix.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

<Note>

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.
Expand Down

1 comment on commit bf6cbb4

@vercel
Copy link

@vercel vercel bot commented on bf6cbb4 Oct 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sentry-docs – ./

docs.sentry.io
sentry-docs.sentry.dev
sentry-docs-git-master.sentry.dev

Please sign in to comment.