Skip to content

What is the correct way to upload source maps? #9

@welkinwong

Description

@welkinwong

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

  1. Go to Site Settings > Source Maps
  2. Enable "Source Map Support"
  3. Upload maps for each release

However, I've run into a couple of problems:

  1. I couldn't find any installation instructions for the SkySignal CLI.
  2. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions