[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[AI SDK](/c/ai-sdk/62)

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

13 views · 0 likes · 2 posts


Jesusvalle1 (@jesusvalle1) · 2026-02-23

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](https://community.vercel.com/t/unable-to-access-ai-sdk-devtools/33308/9)

## 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.


Amy Egan (@amyegan) · 2026-02-26

In that previous topic, it looks like Nico [merged a PR](https://github.com/vercel/ai/pull/12394) to address the dev mode detection issue. Did that not solve it for you?