e4578a198f
* begin adding sentry * add sentry webpack config * rename environment variable * make sourcemaps work for sentry * set environmenet based on vega environment * rename envs * remove throw error button
17 lines
390 B
JavaScript
17 lines
390 B
JavaScript
const SentryPlugin = require('@sentry/webpack-plugin');
|
|
|
|
module.exports = (config, context) => {
|
|
const additionalPlugins = process.env.SENTRY_AUTH_TOKEN
|
|
? [
|
|
new SentryPlugin({
|
|
include: './dist/apps/explorer',
|
|
project: 'block-explorer',
|
|
}),
|
|
]
|
|
: [];
|
|
return {
|
|
...config,
|
|
plugins: [...additionalPlugins, ...config.plugins],
|
|
};
|
|
};
|