// use case
Expose your SvelteKit dev server publicly
vite preview / dev binds locally. Designers and PMs need real URLs to review on actual devices. lrok publishes the running dev server with HMR over WebSocket.
Run SvelteKit
$ npm run dev # :5173Tunnel
$ lrok http 5173Vite allowedHosts
In vite.config.ts: server: { allowedHosts: ['.lrok.io'] }. The leading dot accepts any lrok subdomain so you don't have to update on each random name.
// why lrok for this
SvelteKit's invalidation runs over the same Vite WebSocket. lrok proxies WS frames untouched; what saves on disk re-renders in the shared preview window in milliseconds.