Skip to content

Commit d6a4feb

Browse files
committed
Added docs on validation
1 parent 9be82a4 commit d6a4feb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/sourcemaps.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,27 @@ automatically uploaded to the release `2da95dfb052f477380608d59d32b4ab9`
176176
in this case. If you want to use other extensions you can provide it with
177177
the ``--ext`` parameter.
178178

179+
.. admonition:: Validating Sourcemaps
180+
181+
Unfortunately it can be quite challenging to ensure that sourcemaps
182+
are actually valid themselves and uploaded correctly. To ensure
183+
that everything is working as intended you can use the `--validate`
184+
flag when uploading sourcemaps which will attempt to locally parse the
185+
sourcemap and look up the references. Note that there are known cases
186+
where the validate flag will indicate failures when the setup is
187+
correct (if you have references to external sourcemaps then the
188+
validation tool will indicate a failure).
189+
190+
Here are some things you can check in addition to the validation step:
191+
192+
* Make sure that the URL prefix is correct for your files. This is
193+
easy to get wrong.
194+
* Make sure you upload the matching sourcemaps for your minimized
195+
files.
196+
* Make sure that your minified files you have on your servers
197+
actually have references to your files.
198+
199+
179200
.. sentry:edition:: hosted
180201
181202
Working Behind a Firewall

0 commit comments

Comments
 (0)