diff --git a/next.config.js b/next.config.js index 3ed2aca4..31826913 100644 --- a/next.config.js +++ b/next.config.js @@ -79,34 +79,6 @@ let nextConfig = { }, }; -/** @see https://docs.sentry.io/platforms/javascript/guides/nextjs */ -const { withSentryConfig } = require("@sentry/nextjs"); - -/** - * @type {Partial} - * @see https://github.com/getsentry/sentry-webpack-plugin#options - */ -const sentryWebpackConfig = { - org: "skip-protocol", - project: "ibc-dot-fun", - silent: true, -}; - -/** - * @type {import('@sentry/nextjs/types/config/types').UserSentryOptions} - * @see https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup - */ -const sentryOptions = { - disableLogger: true, - hideSourceMaps: false, - transpileClientSDK: true, - tunnelRoute: "/monitoring", - widenClientFileUpload: true, -}; - -/** @see https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup */ -nextConfig = withSentryConfig(nextConfig, sentryWebpackConfig, sentryOptions); - module.exports = nextConfig; function checkEnv() { diff --git a/package.json b/package.json index 832a5a1a..c2f6671c 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-scroll-area": "^1.0.5", "@radix-ui/react-tooltip": "^1.0.7", - "@sentry/nextjs": "^7.99.0", "@skip-go/widget": "^2.5.1", "@solana/spl-token": "^0.4.1", "@solana/wallet-adapter-react": "^0.15.35", diff --git a/sentry.client.config.ts b/sentry.client.config.ts deleted file mode 100644 index 77f4997b..00000000 --- a/sentry.client.config.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file configures the initialization of Sentry on the client. -// The config you add here will be used whenever a users loads a page in their browser. -// https://docs.sentry.io/platforms/javascript/guides/nextjs/ - -import * as Sentry from "@sentry/nextjs"; - -Sentry.init({ - dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN, - - // Adjust this value in production, or use tracesSampler for greater control - tracesSampleRate: 1, - - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - - replaysOnErrorSampleRate: 1.0, - - // This sets the sample rate to be 10%. You may want this to be 100% while - // in development and sample at a lower rate in production - replaysSessionSampleRate: 0.1, - - // You can remove this option if you're not planning to use the Sentry Session Replay feature: - integrations: [ - new Sentry.Replay({ - // Additional Replay configuration goes in here, for example: - maskAllText: false, - blockAllMedia: false, - }), - ], -}); diff --git a/sentry.edge.config.ts b/sentry.edge.config.ts deleted file mode 100644 index c2245080..00000000 --- a/sentry.edge.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file configures the initialization of Sentry for edge features (middleware, edge routes, and so on). -// The config you add here will be used whenever one of the edge features is loaded. -// Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally. -// https://docs.sentry.io/platforms/javascript/guides/nextjs/ - -import * as Sentry from "@sentry/nextjs"; - -Sentry.init({ - dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN, - - // Adjust this value in production, or use tracesSampler for greater control - tracesSampleRate: 1, - - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, -}); diff --git a/sentry.server.config.ts b/sentry.server.config.ts deleted file mode 100644 index 3c9937ad..00000000 --- a/sentry.server.config.ts +++ /dev/null @@ -1,15 +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"; - -Sentry.init({ - dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN, - - // Adjust this value in production, or use tracesSampler for greater control - tracesSampleRate: 1, - - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, -});