Skip to content

Commit

Permalink
Merge pull request #536 from oraichain/fix/hide-sentry-source-map
Browse files Browse the repository at this point in the history
hide source map
  • Loading branch information
haunv3 authored Jan 9, 2024
2 parents e662fe5 + 7618fc5 commit 0068626
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,26 @@ module.exports = {
fs.copyFileSync(vendorFileSrc, vendorFileDest);
}

if (!isDevelopment && process.env.SENTRY_AUTH_TOKEN) {
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
config.devtool = 'source-map';
config.plugins.push(
new SentryWebpackPlugin({
org: 'oraichain',
project: 'oraidex',
// if (!isDevelopment && process.env.SENTRY_AUTH_TOKEN) {
// const SentryWebpackPlugin = require('@sentry/webpack-plugin');
// config.devtool = 'source-map';
// config.plugins.push(
// new SentryWebpackPlugin({
// org: 'oraichain',
// project: 'oraidex',

// Specify the directory containing build artifacts
include: './build',
// // Specify the directory containing build artifacts
// include: './build',

// Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
// and needs the `project:releases` and `org:read` scopes
authToken: process.env.SENTRY_AUTH_TOKEN,
// // Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
// // and needs the `project:releases` and `org:read` scopes
// authToken: process.env.SENTRY_AUTH_TOKEN,

// Optionally uncomment the line below to override automatic release name detection
release: vendorHash
})
);
}
// // Optionally uncomment the line below to override automatic release name detection
// release: vendorHash
// })
// );
// }

config.plugins.push(
new webpack.DllReferencePlugin({
Expand Down

0 comments on commit 0068626

Please sign in to comment.