S
SolidJS5mo ago
belst

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
peerreynders
peerreynders5mo ago
I'd start looking here. No guarantees though ...
vitejs
Server Options
Next Generation Frontend Tooling
Birk Skyum
Birk Skyum5mo ago
you can fix the dev server port with "dev": "vinxi dev --port 10000" the vite server options are largely ignored because of vinxi
belst
belst5mo ago
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:
Want results from more Discord servers?
Add your server