Skip to content

fix(vite): skip nitro middleware on mounted paths#3805

Merged
pi0 merged 2 commits intomainfrom
fix/vite-skipmounts
Nov 18, 2025
Merged

fix(vite): skip nitro middleware on mounted paths#3805
pi0 merged 2 commits intomainfrom
fix/vite-skipmounts

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Nov 18, 2025

Some vite plugin and integrations might register their routes in the dev server. (Example: '/.devtools-vite', '/.devtools', '/__open-in-editor')

This change skips Nitro dev middleware on mounted server paths. (nice idea by @antfu in #3775 (comment) ❤️)

@vercel
Copy link

vercel bot commented Nov 18, 2025

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

Project Deployment Preview Comments Updated (UTC)
nitro.build Ready Ready Preview Comment Nov 18, 2025 5:49pm

@pi0 pi0 changed the title fix(vite): skip middleware on mounted paths fix(vite): skip nitro middleware on mounted paths Nov 18, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/nitrojs/nitro@3805

commit: f3c8e08

@pi0 pi0 merged commit 0316c6c into main Nov 18, 2025
11 checks passed
@pi0 pi0 deleted the fix/vite-skipmounts branch November 18, 2025 17:52
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.

1 participant