// use case
Expose your Deno or Fresh server publicly
Deno.serve() and Fresh both default to localhost. Hosting on Deno Deploy is great for prod but slow for the inner dev loop. lrok lets you iterate locally with a public URL.
Run Deno
$ deno run --allow-net main.tsTunnel
$ lrok http 8000Read X-Forwarded-Proto in your handler
request.headers.get("x-forwarded-proto") — when proxied by lrok this is "https". Use it to build self-referential URLs (OAuth state, signed download links).
// why lrok for this
Deno's permission model is strict — every dev iteration to Deploy costs a few seconds. lrok keeps the loop on localhost while still giving you a real public URL for testing webhooks and OAuth.