Skip to content

Commit

Permalink
fix(sentry): supprime la configuration incorrecte de nettoyage de sou…
Browse files Browse the repository at this point in the history
…rcemaps
  • Loading branch information
thom4parisot committed Nov 21, 2024
1 parent 8e8e2d6 commit fd3c993
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions front/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import graphql from '@rollup/plugin-graphql'
export default defineConfig(async ({ mode }) => {
const env = loadEnv(mode, fileURLToPath(import.meta.resolve('..')), ['SNOWPACK_', 'SENTRY_'])
const { SNOWPACK_MATOMO_URL, SNOWPACK_MATOMO_SITE_ID } = env
const sourcemap = Boolean(env.ENABLE_SOURCEMAPS) || env.SENTRY_ENVIRONMENT === 'dev'
const sourcemap = Boolean(env.ENABLE_SOURCEMAPS) || env.SENTRY_ENVIRONMENT === 'dev' || false

return {
base: env.DEPLOY_PRIME_URL ?? '/',
Expand Down Expand Up @@ -49,10 +49,7 @@ export default defineConfig(async ({ mode }) => {
sentryVitePlugin({
org: 'ecrinum-stylo',
project: 'stylo-front',
authToken: env.SENTRY_AUTH_TOKEN,
sourcemaps: {
filesToDeleteAfterUpload: sourcemap
}
authToken: env.SENTRY_AUTH_TOKEN
})
],
define: {
Expand Down

0 comments on commit fd3c993

Please sign in to comment.