Skip to content

Commit

Permalink
feat: Add sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
dca committed Aug 11, 2023
1 parent ccd9c4d commit 571369f
Show file tree
Hide file tree
Showing 9 changed files with 657 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pokedex-for-kids-web/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# Sentry Auth Token
.sentryclirc
38 changes: 38 additions & 0 deletions pokedex-for-kids-web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,41 @@ const nextConfig = {
}

module.exports = nextConfig


// Injected 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,

org: "pokedex-for-kids",
project: "pokedex-for-kids-web",
},
{
// 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 571369f

Please sign in to comment.