Remove Sentry/GlitchTip integration

- main.js: drop @sentry/browser + @sentry/vue init.
- webpack.config.prod.js: drop sentryWebpackPlugin (and its dotenv/env
  plumbing that only served Sentry release/source-map upload).
- package.json: remove @sentry/browser, @sentry/vue, @sentry/webpack-plugin.

Note: run 'npm install' to update package-lock before the next build.
This commit is contained in:
2026-07-15 21:16:58 +02:00
parent 2f5a230370
commit 513cdd6f9f
3 changed files with 0 additions and 54 deletions

View File

@@ -6,11 +6,6 @@ const baseConfig = require('./webpack.config.base')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const TerserPlugin = require("terser-webpack-plugin");
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
require('dotenv').config();
// console.log(process.env);
module.exports = merge(baseConfig, {
mode: 'production',
@@ -75,18 +70,6 @@ module.exports = merge(baseConfig, {
},
devtool: 'source-map', // Ensure source maps are generated
plugins: [
sentryWebpackPlugin({
org: "figures-libres",
project: "materio.com",
authToken: process.env.SENTRY_AUTH_TOKEN,
url: "https://frontlog.figli.io",
release: {
name: process.env.RELEASE
},
// urlPrefix: '~/', // Adjust based on your deployment setup
// include: './dist', // Adjust based on your output directory
// ignore: ['node_modules', 'build'],
}),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),

View File

@@ -19,8 +19,6 @@
"author": "Bachir Soussi Chiadmi",
"license": "MIT",
"dependencies": {
"@sentry/browser": "^9.8.0",
"@sentry/vue": "^9.8.0",
"axios": "^0.21.0",
"check-password-strength": "^1.0.15",
"pretty-bytes": "^5.5.0",
@@ -40,7 +38,6 @@
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.12.7",
"@kazupon/vue-i18n-loader": "^0.5.0",
"@sentry/webpack-plugin": "^3.2.2",
"@vue/test-utils": "^1.1.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",

View File

@@ -62,40 +62,6 @@ import 'theme/assets/styles/print.scss'
import MA from 'vuejs/api/ma-axios'
import * as Sentry from '@sentry/browser'
import * as VueSentry from '@sentry/vue'
Sentry.init({
dsn: 'https://7c0e73518188407d9d1f1b1f1f87d457@frontlog.figli.io/3',
// release: "",
integrations: [
Sentry.browserTracingIntegration()
// Sentry.replayIntegration(),
],
tracesSampleRate: 1.0
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
// tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
// // Capture Replay for 10% of all sessions,
// // plus for 100% of sessions with an error
// // Learn more at
// // https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration
// replaysSessionSampleRate: 0.1,
// replaysOnErrorSampleRate: 1.0,
})
// setTimeout(() => {
// throw new Error('Sentry Test Error')
// })
VueSentry.init({
Vue,
dsn: 'https://7c0e73518188407d9d1f1b1f1f87d457@frontlog.figli.io/3',
integrations: [
]
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
// tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
})
export let _v_sitebranding_block, _v_user_block, _v_header_menu, _v_language_switcher,
_v_pagetitle_block, _v_search_block,
_v_main_content, _v_left_content,