Skip to content

Commit

Permalink
Removing Sentry Dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
divya-jeevanantham committed Oct 19, 2024
1 parent 86863ee commit 6ab8c1c
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 608 deletions.
9 changes: 0 additions & 9 deletions app/api/sentry-example-api/route.js

This file was deleted.

19 changes: 0 additions & 19 deletions app/global-error.jsx

This file was deleted.

40 changes: 1 addition & 39 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {withSentryConfig} from '@sentry/nextjs';
/** @type {import('next').NextConfig} */
const nextConfig = {
typescript: {
Expand All @@ -7,41 +6,4 @@ const nextConfig = {
eslint: {
ignoreDuringBuilds: true
}
};

export default withSentryConfig(nextConfig, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

// Suppresses source map uploading logs during build
silent: true,
org: "acme-0k",
project: "javascript-nextjs",
}, {
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,

// Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
// This can increase your server load as well as your hosting bill.
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
// tunnelRoute: "/monitoring",

// Hides source maps from generated client bundles
hideSourceMaps: true,

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,

// Enables automatic instrumentation of Vercel Cron Monitors.
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
});
};
Loading

0 comments on commit 6ab8c1c

Please sign in to comment.