Skip to content

Commit

Permalink
Revert "NextJS + Sentry"
Browse files Browse the repository at this point in the history
This reverts commit b592d3f.
  • Loading branch information
bsansone committed Nov 29, 2021
1 parent 0b81d39 commit 22ad590
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 776 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,3 @@ firestore-coverage.html
.vercel

.firebase-debug.log.icloud

# Sentry
.sentryclirc
29 changes: 4 additions & 25 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
// This file sets a custom webpack configuration to use your Next.js app
// with Sentry.
// https://nextjs.org/docs/api-reference/next.config.js/introduction
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});

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

const moduleExports = {
// Your existing module.exports
};

const SentryWebpackPluginOptions = {
// Additional config options for the Sentry Webpack plugin. Keep in mind that
// the following options are set automatically, and overriding them is not
// recommended:
// release, url, org, project, authToken, configFile, stripPrefix,
// urlPrefix, include, ignore

silent: true, // Suppresses all logs
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
};

// 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 = withBundleAnalyzer({});
Loading

1 comment on commit 22ad590

@vercel
Copy link

@vercel vercel bot commented on 22ad590 Nov 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.