react-ecommerce icon indicating copy to clipboard operation
react-ecommerce copied to clipboard

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

Open twbluenaxela opened this issue 3 years ago • 1 comments

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

twbluenaxela avatar May 26 '22 03:05 twbluenaxela

@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 avatar Jun 10 '22 14:06 sbmsr