// use case

Expose your Nuxt dev server publicly

nuxt dev runs on localhost. Vue 3 / Nuxt 3 features (auth modules, payments, push notifications) need a public origin. lrok wraps it cleanly without ejecting from the Nuxt dev server.
  1. Run Nuxt

    $ npx nuxt dev
  2. Tunnel

    $ lrok http 3000
  3. Vite host whitelist via Nuxt

    In nuxt.config.ts: vite: { server: { allowedHosts: ['.lrok.io'] } }. HMR is preserved over the same wss:// upgrade.

// why lrok for this

@nuxt/auth-utils and @nuxt/security read req.protocol via x-forwarded-proto. lrok sets these correctly so cookie-based sessions are Secure-flagged in dev — same posture as prod.

Related workflows