Skip to content

Commit 26b78f6

Browse files
committed
Removes sentry
1 parent a675b9c commit 26b78f6

11 files changed

+30
-351
lines changed

.github/workflows/unit.yml

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88
container: cypress/browsers:node14.19.0-chrome100-ff99-edge
99
env:
10-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
1110
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1211
ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }}
1312
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ yalc.lock
3939

4040
package-lock.json
4141

42-
# Sentry
43-
.sentryclirc
44-
4542
# Yarn
4643
/.yarn
4744
.yarnrc.yml

.sentryclirc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[auth]
2+
token=2ff61c74ad924ddb8ceeb429e94a4600ab14e27b384440faa92f23cc60bc08d3

modules/app/api/withApiHandler.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
88

99
import type { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
10-
import { withSentry } from '@sentry/nextjs';
1110
import logger from 'lib/logger';
1211
import { API_ERROR_CODES } from '../constants/apiErrors';
1312
import { getMessageFromCode, ERROR_CODES } from 'eth-rpc-errors';
1413

1514
export default function withApiHandler(handler: NextApiHandler, { allowPost = false } = {}): NextApiHandler {
16-
return withSentry(async (req: NextApiRequest, res: NextApiResponse) => {
15+
return async (req: NextApiRequest, res: NextApiResponse) => {
1716
res.setHeader('Access-Control-Allow-Origin', '*');
1817
res.setHeader('Access-Control-Allow-Methods', allowPost ? 'GET, POST' : 'GET');
1918
res.setHeader('Access-Control-Allow-Headers', 'Authorization, Accept, Content-Type');
@@ -56,5 +55,5 @@ export default function withApiHandler(handler: NextApiHandler, { allowPost = fa
5655
}
5756
});
5857
}
59-
});
58+
};
6059
}

modules/tags/constants/poll-tags-mapping.json

+12
Original file line numberDiff line numberDiff line change
@@ -3530,5 +3530,17 @@
35303530
"medium-impact",
35313531
"ratification",
35323532
"mips"
3533+
],
3534+
"941": [
3535+
"medium-impact",
3536+
"misc-governance",
3537+
"risk-parameter",
3538+
"psm"
3539+
],
3540+
"942": [
3541+
"medium-impact",
3542+
"misc-governance",
3543+
"risk-parameter",
3544+
"psm"
35333545
]
35343546
}

next.config.js

+1-23
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ const path = require('path');
22

33
require('dotenv').config({ path: './.env' });
44

5-
// This file sets a custom webpack configuration to use your Next.js app
6-
// with Sentry.
7-
// https://nextjs.org/docs/api-reference/next.config.js/introduction
8-
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
9-
const { withSentryConfig } = require('@sentry/nextjs');
105
const securityHeaders = [
116
// Adds x-xss-protection
127
{
@@ -59,9 +54,6 @@ const moduleExports = {
5954
// Opt-in SWC minification (next 12.0.2)
6055
// swcMinify: true, // fatal runtime error: failed to initiate panic, error 5
6156

62-
// Fix Sentry error https://github.com/getsentry/sentry-javascript/issues/4103
63-
outputFileTracing: false,
64-
6557
webpack: (config, { isServer }) => {
6658
if (!isServer) {
6759
// Fixes npm packages that depend on `fs` module
@@ -102,18 +94,4 @@ const moduleExports = {
10294
staticPageGenerationTimeout: 120
10395
};
10496

105-
const SentryWebpackPluginOptions = {
106-
// Additional config options for the Sentry Webpack plugin. Keep in mind that
107-
// the following options are set automatically, and overriding them is not
108-
// recommended:
109-
// release, url, org, project, authToken, configFile, stripPrefix,
110-
// urlPrefix, include, ignore
111-
112-
silent: true // Suppresses all logs
113-
// For all available options, see:
114-
// https://github.com/getsentry/sentry-webpack-plugin#options.
115-
};
116-
117-
// Make sure adding Sentry options is the last code to run before exporting, to
118-
// ensure that your source maps include changes from all other Webpack plugins
119-
module.exports = withSentryConfig(moduleExports, SentryWebpackPluginOptions);
97+
module.exports = moduleExports;

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"@reach/menu-button": "^0.16.2",
4747
"@reach/tabs": "^0.10.3",
4848
"@reach/tooltip": "^0.16.2",
49-
"@sentry/nextjs": "^6.19.2",
5049
"@theme-ui/color": "^0.14.4",
5150
"@theme-ui/css": "^0.12.0",
5251
"@theme-ui/match-media": "^0.12.0",

sentry.client.config.js

-21
This file was deleted.

sentry.properties

-4
This file was deleted.

sentry.server.config.js

-20
This file was deleted.

0 commit comments

Comments
 (0)