From b9e0760c50b599ff3235eddf6a105283cc18162e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 7 Jul 2023 02:36:07 +0200 Subject: [PATCH] Get rid of Sentry :( --- next.config.js | 16 +--------------- package.json | 1 - sentry.client.config.js | 17 ----------------- sentry.edge.config.js | 17 ----------------- sentry.server.config.js | 17 ----------------- 5 files changed, 1 insertion(+), 67 deletions(-) delete mode 100644 sentry.client.config.js delete mode 100644 sentry.edge.config.js delete mode 100644 sentry.server.config.js diff --git a/next.config.js b/next.config.js index 3ad9b5b..ff97348 100644 --- a/next.config.js +++ b/next.config.js @@ -1,21 +1,7 @@ /** @type {import('next').NextConfig} */ -const { withSentryConfig } = require('@sentry/nextjs'); - -const moduleExports = { +module.exports = { images: { domains: [], - }, - sentry: { - hideSourceMaps: false, } } - -const sentryWebpackPluginOptions = { - url: "https://sentry.io/", - org: "stefano-pigozzi", - project: "steffoweb", - silent: true, -}; - -module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions); diff --git a/package.json b/package.json index 06674d3..0a58296 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ "@fortawesome/free-regular-svg-icons": "^6.2.0", "@fortawesome/free-solid-svg-icons": "^6.2.0", "@fortawesome/react-fontawesome": "^0.2.0", - "@sentry/nextjs": "^7.31.0", "@steffo/bluelib": "^9.0.1", "classnames": "^2.3.2", "next": "^12.3.1", diff --git a/sentry.client.config.js b/sentry.client.config.js deleted file mode 100644 index 3a7cde1..0000000 --- a/sentry.client.config.js +++ /dev/null @@ -1,17 +0,0 @@ -// This file configures the initialization of Sentry on the browser. -// The config you add here will be used whenever a page is visited. -// https://docs.sentry.io/platforms/javascript/guides/nextjs/ - -import * as Sentry from '@sentry/nextjs'; - -const dsn = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; - -Sentry.init({ - dsn, - // Adjust this value in production, or use tracesSampler for greater control - tracesSampleRate: 1.0, - // ... - // Note: if you want to override the automatic release value, do not set a - // `release` value here - use the environment variable `SENTRY_RELEASE`, so - // that it will also get attached to your source maps -}); diff --git a/sentry.edge.config.js b/sentry.edge.config.js deleted file mode 100644 index 3f1c971..0000000 --- a/sentry.edge.config.js +++ /dev/null @@ -1,17 +0,0 @@ -// This file configures the initialization of Sentry on the Edge Runtime. -// The config you add here will be used whenever a page is visited. -// https://docs.sentry.io/platforms/javascript/guides/nextjs/ - -import * as Sentry from '@sentry/nextjs'; - -const dsn = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; - -Sentry.init({ - dsn, - // Adjust this value in production, or use tracesSampler for greater control - tracesSampleRate: 1.0, - // ... - // Note: if you want to override the automatic release value, do not set a - // `release` value here - use the environment variable `SENTRY_RELEASE`, so - // that it will also get attached to your source maps -}); diff --git a/sentry.server.config.js b/sentry.server.config.js deleted file mode 100644 index 16c972a..0000000 --- a/sentry.server.config.js +++ /dev/null @@ -1,17 +0,0 @@ -// This file configures the initialization of Sentry on the server. -// The config you add here will be used whenever the server handles a request. -// https://docs.sentry.io/platforms/javascript/guides/nextjs/ - -import * as Sentry from '@sentry/nextjs'; - -const dsn = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; - -Sentry.init({ - dsn, - // Adjust this value in production, or use tracesSampler for greater control - tracesSampleRate: 1.0, - // ... - // Note: if you want to override the automatic release value, do not set a - // `release` value here - use the environment variable `SENTRY_RELEASE`, so - // that it will also get attached to your source maps -});