I'm trying to set up source map uploads for error tracking following the documentation at https://docs.skysignal.app/docs/agent/errors/#upload-source-maps. It mentions two methods:
Upload Source Maps
After building your app, upload source maps:
# Using the SkySignal CLI
skysignal sourcemaps upload \
--api-key $SKYSIGNAL_API_KEY \
--version 1.0.0 \
./bundle/programs/server/*.js.map
Configure in Dashboard
- Go to Site Settings > Source Maps
- Enable "Source Map Support"
- Upload maps for each release
However, I've run into a couple of problems:
- I couldn't find any installation instructions for the SkySignal CLI.
- I also couldn't locate the "Site Settings > Source Maps" option in the dashboard.
I then checked https://docs.skysignal.app/docs/guides/error-tracking/#source-maps, which suggests that uploading via API might be possible.
Source Maps
Upload source maps for readable stack traces:
# During build
npm run build
# Upload source maps
curl -X POST https://dash.skysignal.app/v1/sourcemaps \
-H "X-SkySignal-Key: sk_live_xxx" \
-F "sourcemap=@build/bundle.js.map" \
-F "url=https://yourapp.com/bundle.js" \
-F "version=1.0.0"
But my main confusion is: Which specific .js.map files am I supposed to upload?
After building my Meteor app, I found multiple .map files in the bundle, for example:
bundle/programs/server/app/app.js.map
- Other
.js.map files under bundle/programs/server/app/ (like packages/xxx.js.map)
- Numerous
.js.map files under bundle/programs/web.browser/
Could someone please clarify the correct method to upload source maps and which files are needed? Thanks!
I'm trying to set up source map uploads for error tracking following the documentation at https://docs.skysignal.app/docs/agent/errors/#upload-source-maps. It mentions two methods:
However, I've run into a couple of problems:
I then checked https://docs.skysignal.app/docs/guides/error-tracking/#source-maps, which suggests that uploading via API might be possible.
But my main confusion is: Which specific
.js.mapfiles am I supposed to upload?After building my Meteor app, I found multiple
.mapfiles in the bundle, for example:bundle/programs/server/app/app.js.map.js.mapfiles underbundle/programs/server/app/(likepackages/xxx.js.map).js.mapfiles underbundle/programs/web.browser/Could someone please clarify the correct method to upload source maps and which files are needed? Thanks!