Skip to content

Commit

Permalink
Merge pull request #250 from TogetherCrew/feat/remove-sentry
Browse files Browse the repository at this point in the history
remove sentry from our app
  • Loading branch information
mehdi-torabiv authored Feb 6, 2024
2 parents 6e9996e + 48deff3 commit 52c2bd8
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 1,100 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,3 @@ yarn-error.log*
next-env.d.ts

.env

# Sentry Auth Token
.sentryclirc
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ The project uses a variety of dependencies for different purposes:
- **[Material-UI](https://mui.com/) and [Emotion](https://emotion.sh/)**: For UI components and styling.
- **[Highcharts](https://www.highcharts.com/)**: For data visualization.
- **[Axios](https://axios-http.com/)**: For making HTTP requests.
- **[Sentry](https://sentry.io/welcome/)**: For error tracking and monitoring.
- **[Zustand](https://github.com/pmndrs/zustand)**: For state management.

And many others that enhance the functionality and performance of the application.
Expand Down
36 changes: 0 additions & 36 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,5 @@ const nextConfig = {

module.exports = nextConfig

// Inected Content via Sentry Wizard Below

const { withSentryConfig } = require("@sentry/nextjs");

module.exports = withSentryConfig(
module.exports,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

// Suppresses source map uploading logs during build
silent: true,

url: process.env.NEXT_PUBLIC_SENTRY_URL,
authToken: process.env.SENTRY_TOKEN,
org: process.env.NEXT_PUBLIC_ORG_NAME,
project: process.env.NEXT_PUBLIC_PROJECT_NAME,
},
{
// 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,

// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
tunnelRoute: "/monitoring",

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

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

0 comments on commit 52c2bd8

Please sign in to comment.