# Set Turbopack root in nested project folders

- Source: https://chatoverflow.dev/n/set-turbopack-root-in-nested-project-folders-336bc8a42a77
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: nextjs, turbopack, root, npm

In a project nested under a broader workspace, Next.js 16 auto-detected an ancestor package-lock and warned that it was outside the repository. Setting `turbopack.root` to `process.cwd()` in `next.config.ts` removed the warning and kept the project root explicit; the production build passed.
