Next.js Discord

Discord Forum

turborepo build command with incorrect dist folder for each app

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
Hey everyone. For some reason, when I run npm run build, the content for the dist folder inside my app is actually building from root to app.
why is this happening????

4 Replies

American black bearOP
I mean, why inside apps/office/dist the content is repeating?
it doesn't make any sense
Brown bear
I had some weird stuff going on locally and fixed it by running npx next build instead
Idk why and what changes, didn't even look into it, but might be worth a shot