diff --git a/next.config.js b/next.config.js index 0b3dc0b..6030891 100644 --- a/next.config.js +++ b/next.config.js @@ -1,17 +1,7 @@ -const { withSentryConfig } = require('@sentry/nextjs'); - const moduleExports = { reactStrictMode: true, compiler: { - // ssr and displayName are configured by default styledComponents: true, }, }; - -const sentryWebpackPluginOptions = { - silent: true, // Suppresses all logs -}; - -// Make sure adding Sentry options is the last code to run before exporting, to -// ensure that your source maps include changes from all other Webpack plugins -module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions); +module.exports = moduleExports; diff --git a/package.json b/package.json index 4603637..c157eaf 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "@mui/icons-material": "^5.3.0", "@mui/material": "^5.3.0", "@pdftron/webviewer": "^8.3.3", - "@sentry/nextjs": "^6.19.7", "axios": "^0.26.1", "core-js": "^3.21.1", "cursor-react": "^1.0.3", diff --git a/pages/api/index.js b/pages/api/index.js index 3c3025f..005df20 100644 --- a/pages/api/index.js +++ b/pages/api/index.js @@ -1,8 +1,7 @@ import axios from "axios"; -import { withSentry } from '@sentry/nextjs'; const handler = async (req, res) => { res.status(200).json({ name: "John Doe" }); } -export default withSentry(handler); \ No newline at end of file +export default handler; \ No newline at end of file diff --git a/sentry.client.config.js b/sentry.client.config.js deleted file mode 100644 index 09f7c52..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 SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; - -Sentry.init({ - dsn: SENTRY_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.properties b/sentry.properties deleted file mode 100644 index 6491edf..0000000 --- a/sentry.properties +++ /dev/null @@ -1,4 +0,0 @@ -defaults.url=https://sentry.io/ -defaults.org=dftechsdevcenter -defaults.project=bravo68web-portfolio -cli.executable=C:\\Users\\jbany\\AppData\\Local\\npm-cache\\_npx\\a8388072043b4cbc\\node_modules\\@sentry\\cli\\bin\\sentry-cli diff --git a/sentry.server.config.js b/sentry.server.config.js deleted file mode 100644 index 990cf22..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 SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; - -Sentry.init({ - dsn: SENTRY_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 -});