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

Fixed infinite refresh issue caused by Websocket (Vite) failing to connect using Gitpod #34

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

Conversation

twbluenaxela
Copy link

Outdated Vite dependency caused Websocket to constantly refresh the page once failing to connect. Specifying clientport instead of port resolves the issue. I also used the code below to make it so that vite config automatically changes based on whether you're using localhost or Gitpod's workspace. However you still need to specifiy the database URL depending on which one you're using (possible future enhancement?)
Reference
HMR Broken
Client Port Fix

@sbmsr
Copy link
Member

sbmsr commented Jun 10, 2022

@twbluenaxela

praise: ‏Beautiful work! Thanks for the fix.

suggestion: ‏Can you add an update to the README with some images to instruct people how to swap localhost with the gitpod url?

Once we get the README updated, we can go ahead and merge this.

@sbmsr sbmsr self-requested a review June 10, 2022 14:17
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.

None yet

2 participants