File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,16 @@ sourcemaps point to.
101
101
" version" : " 2da95dfb052f477380608d59d32b4ab9"
102
102
}
103
103
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
+
104
111
.. code-block :: bash
105
112
106
113
# 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.
109
114
$ curl https://app.getsentry.com/api/0/projects/:organization_slug/:project_slug/releases/2da95dfb052f477380608d59d32b4ab9/files/ \
110
115
-u [api_key]: \
111
116
-X POST \
You can’t perform that action at this time.
0 commit comments