Uploading source maps

You can upload JavaScript or TypeScript source maps by integrating your existing Sentry Source Map Upload with Better Stack. All of the Sentry-supported build-system integrations and manual uploads should work as-is.

Browser JavaScript / TypeScript

React Native

We do not currently support publicly-hosted source maps, and require you to upload them.

If you need public source maps, or have any issues uploading source maps for one of the above types, please get in touch at hello@betterstack.com.

To configure your build process to upload source maps to Better Stack, follow the "Manual Setup" steps for any of the linked build processes above, and update the required configuration values / environment variables from the values in Errors -> Applications -> Your Application -> Data ingestion.

  • org / SENTRY_ORG
  • project / SENTRY_PROJECT
  • url / SENTRY_URL
  • authToken / SENTRY_AUTH_TOKEN

The authToken is a Telemetry API Token.

Here are a few examples for popular source map upload plugins:

Webpack Environment Variables
plugins: [
    sentryWebpackPlugin({
      org: $TEAM_ID,
      project: $APPLICATION_ID,
      url: $SOURCEMAPS_URL

      authToken: process.env.SENTRY_AUTH_TOKEN,
    }),
  ],
SENTRY_ORG=$TEAM_ID
SENTRY_PROJECT=$APPLICATION_ID
SENTRY_AUTH_TOKEN=$TEAM_TOKEN
SENTRY_URL=$SOURCEMAPS_URL

See the expanded source maps in Better Stack

After uploading your source maps, any subsequent errors will have detailed stack frames in Better Stack Errors! 🚀