// use case
Expose your Astro dev server on a public URL
astro dev binds locally. To preview on a phone or share with a designer you need a real URL. lrok handles it without changing your dev workflow.
Run Astro
$ npm run dev # :4321Tunnel
$ lrok http 4321Vite allowedHosts
In astro.config.mjs: vite: { server: { allowedHosts: ['.lrok.io'] } }. Astro's hot reload (Vite-based) survives.
// why lrok for this
Astro's view transitions and client islands hydrate from real HTTPS only. Self-signed certs trigger mixed-content warnings; lrok ships a real cert at the edge so client-side scripts run.