diff --git a/build/webpack.config.prod.js b/build/webpack.config.prod.js index 71daa6c6..d2418748 100644 --- a/build/webpack.config.prod.js +++ b/build/webpack.config.prod.js @@ -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') }), diff --git a/package.json b/package.json index 7e5f8aee..b729d0ec 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/web/themes/custom/materiotheme/assets/scripts/main.js b/web/themes/custom/materiotheme/assets/scripts/main.js index df099bdd..e5cf3b86 100644 --- a/web/themes/custom/materiotheme/assets/scripts/main.js +++ b/web/themes/custom/materiotheme/assets/scripts/main.js @@ -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,