Skip to content

Commit d899797

Browse files
committed
Clarify sourcemap paths
1 parent 2f1a065 commit d899797

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/sourcemaps.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,16 @@ sourcemaps point to.
101101
"version": "2da95dfb052f477380608d59d32b4ab9"
102102
}
103103
104+
When uploading the file, you'll need to reference it just as it would be referenced
105+
if a browser (or filesystem) had to resolve its path. So for example, if your sourcemap
106+
reference is just a relative path, it's relative to the location of the referencing file.
107+
108+
So for example, if you have ``http://example.com/app.min.js``, and the file contains the
109+
reference to ``app.map.js``, the name of the uploaded file should be ``http://example.com/app.map.js``.
110+
104111
.. code-block:: bash
105112
106113
# Upload a file for the given release
107-
# Note: The filename should be the *full* url that this
108-
# would be referenced as in production.
109114
$ curl https://app.getsentry.com/api/0/projects/:organization_slug/:project_slug/releases/2da95dfb052f477380608d59d32b4ab9/files/ \
110115
-u [api_key]: \
111116
-X POST \

0 commit comments

Comments
 (0)