Skip to content

Commit

Permalink
Bruker updatedLegacySourcemaps fordi vi kjører på Sentry versjon < 23…
Browse files Browse the repository at this point in the history
….6.1
  • Loading branch information
bragejahren committed Feb 22, 2024
1 parent bf49b39 commit efa3326
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/webpack/webpack.production.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,16 @@ const prodConfig: webpack.Configuration = mergeWithRules({
new CssMinimizerWebpackPlugin(),
process.env.SENTRY_AUTH_TOKEN
? sentryWebpackPlugin({
sourcemaps: {
assets: [`~${process.env.BASE_PATH}/dist'`],
},
org: 'nav',
project: 'familie-ba-soknad',
authToken: process.env.SENTRY_AUTH_TOKEN,
url: 'https://sentry.gc.nav.no/',
release: {
name: process.env.SENTRY_RELEASE,
// uploadLegacySourcemaps: {
// paths: ['dist'],
// urlPrefix: `~${process.env.BASE_PATH}`,
// },
uploadLegacySourcemaps: {
paths: ['dist'],
urlPrefix: `~${process.env.BASE_PATH}`,
},
},
errorHandler: err => {
console.warn('Sentry CLI Plugin: ' + err.message);
Expand Down

0 comments on commit efa3326

Please sign in to comment.