Skip to content

Commit bfbb0fb

Browse files
author
Luca Forstner
authored
Clarify remix source map deletion (#8579)
1 parent 85170c4 commit bfbb0fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ Please refer to the [Remix CLI docs](https://remix.run/docs/en/main/other-api/de
6060

6161
### Remove Remix Source Maps
6262

63-
Remix validly discourages hosting source maps in production. After uploading the maps to Sentry, we suggest you delete the `.map` files. Here's a simple shell command example:
63+
Remix validly discourages hosting source maps in production. After uploading the maps to Sentry, we suggest you delete the `.map` files.
64+
The `sentry-upload-sourcemaps` script will automatically try to delete all generated source maps after they're uploaded (unless the `--deleteAfterUpload` flag is provided).
65+
66+
If you want to be extra sure they're deleted, you can use the following shell script:
6467

6568
```bash {tabTitle:Bash}
6669
find ./public/build -type f -name '*.map' -delete

0 commit comments

Comments
 (0)