-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
Milestone
Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
Package + Version
-
@sentry/browser6.15.0 -
@sentry/node6.15.0 -
raven-js -
raven-node(raven for node) - other:
@sentry/nextjs
Version:
6.15.0
Description
@sentry/nextjs disables Nextjs HMR a causes full reloads on every change
I am using the default @sentry/nextjs setup created with the sentry wizard
To currently fix this you can do the following in your next.config.js
const { withSentryConfig: _withSentryConfig } = require('@sentry/nextjs')
const withSentryConfig =
process.env.NODE_ENV === 'production' ? _withSentryConfig : (x) => x
module.exports = withSentryConfig(config)CruelMoney
Metadata
Metadata
Assignees
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK