Add sentry error logging.

This commit is contained in:
Patrick Fic
2021-08-18 15:57:29 -07:00
parent a269fd3ad8
commit a57e35354d
4 changed files with 54555 additions and 10151 deletions

View File

@@ -1,9 +1,22 @@
// craco.config.js
const TerserPlugin = require("terser-webpack-plugin");
const CracoLessPlugin = require("craco-less");
const SentryWebpackPlugin = require("@sentry/webpack-plugin");
module.exports = {
plugins: [
new SentryWebpackPlugin({
// sentry-cli configuration
authToken:
"6b45b028a02342db97a9a2f92c0959058665443d379d4a3a876430009e744260",
org: "snapt-software",
project: "imexonline",
release: process.env.REACT_APP_GIT_SHA,
// webpack-specific configuration
include: ".",
ignore: ["node_modules", "webpack.config.js"],
}),
{
plugin: CracoLessPlugin,
options: {
@@ -53,4 +66,5 @@ module.exports = {
},
}),
},
devtool: "source-map",
};

43861
client/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -108,6 +108,7 @@
]
},
"devDependencies": {
"@sentry/webpack-plugin": "^1.17.1",
"redux-logger": "^3.0.6",
"source-map-explorer": "^2.5.2"
}

File diff suppressed because it is too large Load Diff