-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Copy link
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.js 16
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
- Create a new nextjs 16 project - I believe the issue only occurs when using the Page router but cannot confirm
- Configure sentry using the wizard
- Add a proxy.ts to the project (the example code https://nextjs.org/docs/app/getting-started/proxy should suffice)
- Change the next.config.ts to
const nextConfig: NextConfig = {
output: 'standalone',
};
npm run build
Expected Result
Build should succeed
Actual Result
> Build error occurred
Error: ENOENT: no such file or directory, copyfile 'test-sentry/.next/server/proxy.js' -> 'test-sentry/.next/standalone/.next/server/proxy.js'
at ignore-listed frames {
errno: -2,
code: 'ENOENT',
syscall: 'copyfile',
path: 'test-sentry/.next/server/proxy.js',
dest: 'test-sentry/.next/standalone/.next/server/proxy.js'
}
Additional Context
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.
jorrit and tacomanator
Metadata
Metadata
Assignees
Projects
Status
No status