Our great sponsors
-
sentry-webpack-plugin
Discontinued Repo moved to https://github.com/getsentry/sentry-javascript-bundler-plugins. Please open any issues/PRs there.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Add Sentry’s Next.js SDK to your next.js projects.
/** @type {import('next').NextConfig} */ const { withSentryConfig } = require( '@sentry/nextjs' ); const nextConfig = { reactStrictMode: true } 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. }; module.exports = withSentryConfig( nextConfig, sentryWebpackPluginOptions );
Now check your sentry dashboard to know more about the errors and performance metrics.