-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Vite 3] /__vite_ping
not always intercepted
#9051
Comments
I was not able to reproduce. Where is the #6819 removed |
Indeed, I closed all localhost tabs and I now can't reproduce anymore. Thinking maybe Vite 3 should still intercept |
I think this is too niche to add extra complexity. I imagine users will close the window and the problem is over. |
Ok 👍. Closing then. |
My backend integration uses What is the recommended way to check if the Vite dev server is running now? It'd be ideal of |
We discussed with @khalwat, and seems he can do the same that was done in https://github.com/vitejs/vite/pull/6819/files, that should work in Vite 2 and Vite 3. |
Describe the bug
It seems like the first
/__vite_ping
slips through and isn't intercepted by Vite's dev middleware.HMR still works, so it's not critical.
The vite-plugin-ssr middleware has a workaround, but for other middlewares, it can turn out to be an inconvenience to be hit by the
/__vite_ping
HTTP request and may lead to the pesky need for a workaround like vite-plugin-ssr's one.Reproduction
https://github.com/brillout/vite3-ping-bugEDIT: this reproduction doesn't actually work, see discussion below.
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: