Skip to content

Commit

Permalink
Merge pull request #4317 from luke-h1/chore/remove-sentry-v2
Browse files Browse the repository at this point in the history
chore(frontend): remove sentry
  • Loading branch information
luke-h1 authored Jan 17, 2024
2 parents 3d0c0b2 + 219b670 commit 7620ab8
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 69 deletions.
23 changes: 1 addition & 22 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { withSentryConfig } = require('@sentry/nextjs');

const { createVanillaExtractPlugin } = require('@vanilla-extract/next-plugin');

const withVanillaExtract = createVanillaExtractPlugin();
Expand Down Expand Up @@ -53,21 +51,6 @@ const securityHeaders = [
},
];

const sentryConfigPlugins = {
silent: true,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
};

const sentryConfig = {
widenClientFileUpload: false,
transpileClientSDK: false,
tunnelRoute: '/api/sentry-metrics',
hideSourceMaps: true,
disableLogger: true,
automaticVercelMonitors: false,
};

/**
* @type {import('next').NextConfig}
*/
Expand Down Expand Up @@ -147,8 +130,4 @@ const nextConfig = {
},
};

module.exports = withSentryConfig(
withVanillaExtract(nextConfig),
sentryConfigPlugins,
sentryConfig,
);
module.exports = withVanillaExtract(nextConfig);
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"@reduxjs/toolkit": "^2.0.1",
"@sanity/client": "^6.10.0",
"@sanity/image-url": "^1.0.2",
"@sentry/nextjs": "^7.92.0",
"@vanilla-extract/css": "^1.14.0",
"@vanilla-extract/css-utils": "^0.1.3",
"@vanilla-extract/next-plugin": "^2.3.2",
Expand Down
12 changes: 0 additions & 12 deletions sentry.client.config.ts

This file was deleted.

7 changes: 0 additions & 7 deletions sentry.edge.config.ts

This file was deleted.

7 changes: 0 additions & 7 deletions sentry.server.config.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/app/global-error.tsx

This file was deleted.

0 comments on commit 7620ab8

Please sign in to comment.