Skip to content

Commit 9754c94

Browse files
authored
Merge pull request #13880 from ethereum/remove-sentry
Remove Sentry
2 parents 893e955 + 94a7558 commit 9754c94

File tree

6 files changed

+22
-1035
lines changed

6 files changed

+22
-1035
lines changed

.env.example

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@ BUILD_LOCALES=
3535
# fixed number of CPUs (e.g. 2) to limit the demand during build time
3636
LIMIT_CPUS=
3737

38-
# Sentry auth token required for error tracking
39-
SENTRY_AUTH_TOKEN=
40-
NEXT_PUBLIC_SENTRY_DSN=
41-
4238
# Enables the bundle analyzer
4339
ANALYZE=false

instrumentation.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

next.config.js

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-var-requires */
22
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants")
3-
const { withSentryConfig } = require("@sentry/nextjs")
43

54
const withBundleAnalyzer = require("@next/bundle-analyzer")({
65
enabled: process.env.ANALYZE === "true",
@@ -27,7 +26,7 @@ module.exports = (phase, { defaultConfig }) => {
2726
let nextConfig = {
2827
...defaultConfig,
2928
reactStrictMode: true,
30-
webpack: (config, { webpack }) => {
29+
webpack: (config) => {
3130
config.module.rules.push({
3231
test: /\.ya?ml$/,
3332
use: "yaml-loader",
@@ -58,30 +57,13 @@ module.exports = (phase, { defaultConfig }) => {
5857
// Modify the file loader rule to ignore *.svg, since we have it handled now.
5958
fileLoaderRule.exclude = /\.svg$/i
6059

61-
// Tree shake Sentry debug code
62-
// ref. https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/tree-shaking/#tree-shaking-with-nextjs
63-
config.plugins.push(
64-
new webpack.DefinePlugin({
65-
__SENTRY_DEBUG__: false,
66-
__RRWEB_EXCLUDE_IFRAME__: true,
67-
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
68-
__SENTRY_EXCLUDE_REPLAY_WORKER__: true,
69-
})
70-
)
71-
7260
return config
7361
},
7462
i18n,
7563
trailingSlash: true,
7664
images: {
7765
deviceSizes: [640, 750, 828, 1080, 1200, 1504, 1920],
7866
},
79-
env: {
80-
NEXT_PUBLIC_CONTEXT: process.env.CONTEXT,
81-
},
82-
experimental: {
83-
instrumentationHook: true,
84-
},
8567
}
8668

8769
if (phase !== PHASE_DEVELOPMENT_SERVER) {
@@ -110,15 +92,5 @@ module.exports = (phase, { defaultConfig }) => {
11092
}
11193
}
11294

113-
return withBundleAnalyzer(
114-
withSentryConfig(nextConfig, {
115-
// TODO: temp config, update this to the correct org & project
116-
org: "ethereumorg-ow",
117-
project: "javascript-nextjs",
118-
authToken: process.env.SENTRY_AUTH_TOKEN,
119-
release: `${process.env.BUILD_ID}_${process.env.REVIEW_ID}`,
120-
disableLogger: true,
121-
silent: true,
122-
})
123-
)
95+
return withBundleAnalyzer(nextConfig)
12496
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"@radix-ui/react-switch": "^1.1.0",
4949
"@radix-ui/react-tooltip": "^1.1.2",
5050
"@radix-ui/react-visually-hidden": "^1.1.0",
51-
"@sentry/nextjs": "^8.19.0",
5251
"@socialgouv/matomo-next": "^1.8.0",
5352
"chart.js": "^4.4.2",
5453
"chartjs-plugin-datalabels": "^2.2.0",

sentry.client.config.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)