Skip to content

[Next.js] Emit a warning when the user has not configured onRequestError on Next.js versions that support it #15049

@lforst

Description

@lforst

Description

Next.js 15 added onRequestError which allows for deeper instrumentation for errors.

If people upgrade there is nothing telling them to add export const onRequestError = Sentry.captureRequestError; as per our setup guide and wizard: However, it would be very important to do so.

We should add a warning when Next.js builds or in dev mode when onRequestError is missing so that people add it. Only when we are on Next.js >= 15 though

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions