We recommend using Sentry's Webpack plugin to configure source maps and upload them automatically during the build:
npm install --save-dev @sentry/webpack-plugin
Next you need to generate an access token for our API. Within your organization's settings, navigate to Developer Settings, create a new internal integration, and provide a name appropriate to your organization. Important: Select Releases -> Admin for Permissions.
The Releases -> Admin permission is also known as 'project:releases' in other API documentation.
You may configure sentry-cli through its documented mechanisms, or instead simply bind required parameters when initializing the plugin:
You can change
SENTRY_RELEASE directly to an appropriate env variable based on the environment on which you are going to deploy your application.
Note: The release value provided during source maps upload must match the value in the
Additional information can be found in our Webpack documentation.