-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
10.21.0
Framework Version
Next 16.0.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
https://github.com/BTOdell/sentry-nextjs-standalone-bug
Steps to Reproduce
- Set Next.js build output to 'standalone'
- Import Sentry SDK from
instrumentation.ts(don't even need to configure Sentry innext.config.ts)
Expected Result
Next.js standalone build output should only contain the minimal files needed to run the app
Actual Result
Standalone output directory contains copy of the entire repository / project
Additional Context
Confirmed that this bug does not happen with Next 15.4.4 with @sentry/nextjs v9 nor v10.
Likely a compatibility issue with Next 16?
May be related to #18001, but I'm not getting a build error - just incorrect build output.
Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
richard-powers and dwolrdcojp
Metadata
Metadata
Assignees
Projects
Status
No status