Modify dev server port
I am working remotely and I keep getting this error during development:
can’t establish a connection to the server at ws://localhost:35999/_build/.
Can I somehow fix the port so I can forward it correctly?4 Replies
you can fix the dev server port with
"dev": "vinxi dev --port 10000"
the vite server options are largely ignored because of vinxi
CLI | Vinxi
Vinxi Documentation
ah nice
thanks
wait, does this set the ws hmr port?
because I already forward 3000
guess it's vitejs config
yeah, it's setting
vite.server.hmr.port
in app.config.ts
I do get WebSocket server error: Port is already in use (x2)
tho when I set it
no more errors in the client console but hmr doesnt seem to work
:thinkPepeMath: