Skip to content

Commit

Permalink
disable sourcemaps upload not on main push
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopolani committed Sep 12, 2023
1 parent a8403a5 commit f03c5d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions packages/main/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ const config = {
org: 'theraloss',
project: 'streamflow',
authToken: env.SENTRY_AUTH_TOKEN,
sourcemaps: {
// Undefined = automatically discover them
assets: env.UPLOAD_SOURCEMAPS ? undefined : [],
},
disable: !env.UPLOAD_SOURCEMAPS,
release: {
name: process.env.npm_package_version,
},
Expand Down
5 changes: 1 addition & 4 deletions packages/renderer/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ const config = {
org: 'theraloss',
project: 'streamflow',
authToken: env.SENTRY_AUTH_TOKEN,
sourcemaps: {
// Undefined = automatically discover them
assets: env.UPLOAD_SOURCEMAPS ? undefined : [],
},
disable: !env.UPLOAD_SOURCEMAPS,
release: {
name: process.env.npm_package_version,
},
Expand Down

0 comments on commit f03c5d1

Please sign in to comment.