You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,13 +119,20 @@ Alert rules and digest schedules are managed via the web UI under **Alerts**, or
119
119
120
120
## Source Maps
121
121
122
-
stackpit supports source map uploads so JavaScript stack traces resolve to original source locations. Upload artifact bundles using the standard Sentry CLI:
122
+
stackpit supports source map uploads so minified stack traces resolve to original source locations.
123
+
124
+
Generate a project API key in **Settings → Source Maps** for the project you want to upload to. Then configure `sentry-cli` or your bundler plugin with the ingest URL (the same host as your DSN):
export SENTRY_AUTH_TOKEN=spk_... # project API key
129
+
export SENTRY_ORG=default # any value works
130
+
export SENTRY_PROJECT=1 # project ID
131
+
132
+
sentry-cli sourcemaps upload ./dist
126
133
```
127
134
128
-
The upload endpoints (`/api/0/organizations/{org}/chunk-upload/` and `.../artifactbundle/assemble/`) are Sentry-compatible. Source maps are matched by debug ID and applied automatically when rendering stack traces in the web UI.
135
+
Bundler plugins (`@sentry/vite-plugin`, `@sentry/webpack-plugin`, etc.) accept the same environment variables, or you can pass them as options. Source maps are matched by debug ID and applied automatically when rendering stack traces in the web UI.
129
136
130
137
Stale upload chunks older than 24 hours are cleaned up by a background task.
0 commit comments