Skip to content

Missing debug IDs in source files for self-hosted Next.js #17436

@kylemh

Description

@kylemh

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

10.5.0

Framework Version

15.5.0

Link to Sentry event

https://capsule-corporation.sentry.io/issues/6806409879/events/e9f416df41f6410192304f5a8e74db78/

Reproduction Example/SDK Setup

https://docs.sentry.io/platforms/javascript/guides/nextjs/

I just followed this guide. Trigger errors from /sentry-example-page during dev server (with enabled: true) shows everything perfectly in Sentry, but once I deploy a self-hosted Next.js app in a Docker container with that page, the error's source code doesn't tie to the artifacts that were uploaded.

This isn't related to any new version bump. It's been like this for me since ~v9, so I imagine it's something to do with the fact that the Next.js app is self-hosted?

Steps to Reproduce

  1. https://docs.sentry.io/platforms/javascript/guides/nextjs/
  2. deploy self-hosted Next.js application in a Docker container
  3. errors show up as unminified/uglified

Expected Result

  1. https://docs.sentry.io/platforms/javascript/guides/nextjs/
  2. deploy self-hosted Next.js application in a Docker container
  3. errors show up with full sourcemap tracing

Actual Result

Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions