-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next.js docs for v8.0.0 #12044
Comments
Hey, sorry about that - we are jumping on this as we speak. in the meantime, to unblock you, can you create a file export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs') {
await import('./sentry.server.config');
}
if (process.env.NEXT_RUNTIME === 'edge') {
await import('./sentry.edge.config');
}
} as outlined here |
@dorin-flooz Thanks for pointing this out! I updated the docs so they are in line with v8. I guess the warning won't go away if you import the files like in the snippet @HazAT suggested. You have to delete the export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs') {
Sentry.init({
dsn: env.DSN
tracesSampleRate: 1.0,
});
}
if (process.env.NEXT_RUNTIME === 'edge') {
Sentry.init({
dsn: env.DSN
tracesSampleRate: 1.0,
});
}
} |
hey @HazAT / @s1gr1d, thanks for the quick reply! What about versioned docs - any plans to have that implemented? |
@dorin-flooz we discussed this internally and probably going to work on them |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.0.0
Framework Version
React latest
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
After upgrading to
@sentry/nextjs 8.0.0
, we get the following message in ouryarn next build
log:We tried following the documentation at https://docs.sentry.io/platforms/javascript/guides/nextjs to fix these issues, but it seems to be out of sync:
sentrySDKOptions
options.telemetry
telemetry
sentry.server.config.ts
- https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/#integration-usage-in-nextjsExpected Result
Actual Result
...
The text was updated successfully, but these errors were encountered: