// use case
Share your Vite dev server with the team in one command
You're iterating on the frontend and want a designer or PM to see the work-in-progress without you deploying or them setting up the toolchain. Vite's --host flag exposes localhost on your LAN; lrok exposes it to the internet.
Run Vite as usual
$ npm run dev # http://localhost:5173Tunnel
$ lrok http 5173 Forwarding https://violet-mole.lrok.io -> http://127.0.0.1:5173Send the URL
The team member opens the URL in their browser. Hot reload still works — Vite's WebSocket goes through the same tunnel.
// why lrok for this
lrok proxies WebSocket / HTTP-Upgrade frames untouched, which is what Vite's HMR needs. Some tunnel services break HMR by buffering; we don't.