You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Accessing via a non-localhost URL breaks vite dev server #4234
it seems that if you use a allowedHost domain which just resolves to your machine / 127.0.0.1 the vite nitro
addon breaks the vite dev mode and returns the content of the splat page instead of the vite modules.
I suspect #4108 to be the source of this issue as it worked in 3.0.260311-beta and when patching nitro to log the isNitroRoute boolean, it will be true when accessing via localhost:3000 but false when using any other domain.
(more details can be found in the repro-repos README.md)
Additional context
Sorry for not using the provided template but Stackblitz was just stuck at "Cloning repo from GitHub" for 15min
Thank you very much for the quick fix, @pi0 - I've already tested it via pnpm install https://pkg.pr.new/nitro@6016153 and then with the repro - works 🚀
Activity
dunklesToast commentedon Apr 29, 2026
Thank you very much for the quick fix, @pi0 - I've already tested it via
pnpm install https://pkg.pr.new/nitro@6016153and then with the repro - works 🚀pi0 commentedon Apr 29, 2026
Awesome! Thanks for confirming the fix works.
fix(vite): route extensionless URLs matching a nitro route to nitro u…
fix(vite): route extensionless URLs matching a nitro route to nitro u…
fix(dev): route specific Nitro paths even when URL has asset extension