Skip to content

Sentry doesn't respect next.js basePath config when resolving stack frames #9057

Closed
@simon-abbott

Description

@simon-abbott

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

7.69.0

Framework Version

13.4.4

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  1. In next.config.js set basePath: '/some/path', and use withSentryConfig as normal
  2. Trigger some client-side error in dev mode

Expected Result

The error metadata should be fetched correctly.

Actual Result

Sentry tries to fetch /__nextjs_original-stack-frame instead of /some/path/__nextjs_original-stack-frame, causing a 404 error.

Metadata

Metadata

Assignees

Labels

Package: nextjsIssues related to the Sentry Nextjs SDK

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions