40thieves / webpack-sentry-plugin

Webpack plugin to upload source maps to Sentry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecate baseSentryURL with /projects

schneidmaster opened this issue · comments

Currently, the baseSentryURL option is expected to have a /projects suffix, e.g. https://sentry.io/api/0/projects.

This is somewhat counterintuitive (you would expect the base API URL not to include part of the path) and because of #36 the plugin will start using an /organizations URL to create releases which requires some awkward string replacing.

As a result, the /projects style URL config will be deprecated as of 1.12.0 and may be removed in a future major version release. You should update your config to remove /projects from the end of the baseSentryURL for custom installations.

Before

var config = {
  plugins: [
    new SentryPlugin({
      ...
      baseSentryURL: 'https://sentry.io/api/0/projects'
    })
  ]
}

After

var config = {
  plugins: [
    new SentryPlugin({
      ...
      baseSentryURL: 'https://sentry.io/api/0'
    })
  ]
}