Skip to content

feat(dev): serve chrome devtools.json for automatic workspace folders - #4747

Merged
pi0 merged 2 commits into
mainfrom
feat/devtoolsjson
Oct 7, 2026
Merged

pi0 merged 2 commits into
mainfrom
feat/devtoolsjson

Conversation

@pi0x

@pi0x pi0x commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Serves /.well-known/appspecific/com.chrome.devtools.json from the dev server so Chrome DevTools can connect the project folder as an automatic workspace. Same behavior as vite-plugin-devtools-json.

  • Response is { workspace: { root, uuid } }. root is rootDir.
  • The UUID is generated once and persisted in buildDir/devtools-uuid.
  • WSL / Docker Desktop paths are rewritten to \\wsl.localhost\..., as in the reference plugin.
  • Lives in NitroDevApp, so it works with both nitro dev and the Vite plugin. Also served under baseURL, since in Vite mode Nitro adds baseURL to request URLs before they reach the dev app.
  • Enabled by default. Set devServer.devtoolsJson: false to disable it.

Requests that don't come from loopback (checked with isLocalDevRequest, same as /_vfs) get only the project folder name as root, so the absolute path isn't exposed to other hosts. The UUID is still returned.

🤖 Generated with AI assistant

@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nitro.build Ready Ready Preview Oct 7, 2026 10:55pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 75b52971-8eea-4519-8234-1c476e3f2f68
📥 Commits

Reviewing files that changed from the base of the PR and between 0ae969f and ac0c09b.

📒 Files selected for processing (5)
  • docs/3.config/0.index.md
  • src/dev/_devtools-json.ts
  • src/dev/app.ts
  • src/types/config.ts
  • test/unit/dev-devtools-json.test.ts
 ______________________________________________________________________________________________________________________________________
< DRY - Don't Repeat Yourself. Every piece of knowledge must have a single, unambiguous, authoritative representation within a system. >
 --------------------------------------------------------------------------------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@vercel-internal-security-reviewer

Copy link
Copy Markdown

Security review details

@pkg-pr-new

pkg-pr-new Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/nitro@4747

commit: ac0c09b

@pi0
pi0 marked this pull request as ready for review October 7, 2026 22:58
@pi0
pi0 self-requested a review as a code owner October 7, 2026 22:58
@pi0 pi0 changed the title feat(dev): serve chrome devtools json for automatic workspace folders feat(dev): serve chrome devtools.json for automatic workspace folders Oct 7, 2026
@pi0
pi0 merged commit 3ad7d6e into main Oct 7, 2026
14 of 15 checks passed
@pi0
pi0 deleted the feat/devtoolsjson branch October 7, 2026 22:59

This branch was successfully deployed

1 active deployment
Preview — ac0c09b1 Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants