Next.js Discord

Discord Forum

Standalone build output includes copy of entire monorepo

Unanswered
Serengeti posted this in #help-forum
Open in Discord
Original message was deleted.

7 Replies

sadly I don't know the fix of this but I am following this thread as I am facing the same issue
Serengeti
Good to know I'm not the only one having this issue 😅
Serengeti
@Yi Lon Ma Are you using Sentry in your app?
Serengeti
I created a minimal repro of the problem and seemed to discover that it's caused by Sentry's JS SDK: https://github.com/getsentry/sentry-javascript/issues/18004
If the Sentry SDK isn't imported in the instrumentation file, then the build output is normal.