Vercel AI SDK DevTools inaccessible in monorepos due to /dist/ path detection logic

Hi team,

I’m opening this new thread to follow up on a specific edge case regarding the recent /src/ path detection logic, which is currently causing issues for users working with monorepos (NX, Turborepo, etc.). Ticket here

Problem

In many monorepo structures, it is standard practice to have both /src/ and /dist/ folders coexisting within the workspace or even the same application path (e.g., apps/web/src and apps/web/dist).

Currently, the logic seems to disable DevTools if a /dist/ pattern is detected. This means that as soon as a build is generated or a distribution folder is created at the root by the monorepo manager, DevTools become inaccessible, even during active development.

Current Workaround?

Is there any recommended way to force-enable DevTools in these environments while a more robust detection logic is implemented?

This is significantly impacting the DX for developers using modern monorepo tooling. Looking forward to your thoughts!

Best regards, Jesús.

In that previous topic, it looks like Nico merged a PR to address the dev mode detection issue. Did that not solve it for you?