Skip to content
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

Update vite to fix client pinging behind a proxy on WS disconnect #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jsullivan5
Copy link
Owner

WHY are these changes introduced?

Fixes #0000

The current version of Vite in this project has a bug where when changes occur in the API behind a proxy (as in our case here), Vite pings the dev server to check the connection which is momentarily not running and throws an uncaught exception. This requires a manual refresh of the page which looks like this in the Shopify Admin:

image

This was making it difficult to extend the API in the app. I was constantly manually reloading the page.

WHAT is this pull request doing?

This updates Vite from 2.8.6 to 2.9.1 to incorporate these changes: vitejs/vite#5466 which address this issue. The API still reloads and goes through the auth process, but the manual refresh is no longer needed. :)

This doesn't violate any peer dependencies
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant