how do others use HMR with code-server #4708
Unanswered
simonjcarr
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I have half solved the problem with the help of this tutorial https://coder.com/docs/code-server/latest/guide#proxying-to-a-vue-app I know have the dev server running behind the the nginx reverse proxy, but still don't have the HMR working. For the time being I can live with a manual refresh, but will keep looking for a solution |
Beta Was this translation helpful? Give feedback.
2 replies
-
Is there something for SolidJs? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have tested code-server while listening on the public interface of my cloud VM (no reverse proxy) and I am able to serve a VueJS application in development mode and have HMR working perfectly. In the background I believe HMR is running a web socket server on another port.
When I try to do the same through a reverse proxy with code-server listening on localhost, HMR does not work. It's obvious why, the only port being forwarded is the port code server is running on.
I could do some digging into the networking of my VueJS app and each time I start a new development server, set new reverse proxy rules, but that would be more trouble than it's worth.
Not having a live preview of the code I am working on is a deal breaker when working with frontend JS.
Has anyone else got a workaround for this situation?
Beta Was this translation helpful? Give feedback.
All reactions