Skip to content

dev

Start a development server at an optional entrypoint.

Usage

Defaults to (src|api)/index.{tsx,jsx,ts,js}.

frog dev [entrypoint]

Options

-h, --host

boolean

Expose host URL

frog dev --host

-p, --port

number

Port used by the server. Defaults to 5173.

frog dev --port 3001

-P, --proxy (experimental)

'cloudflared' | 'ngrok'

Start proxy for dev server via Cloudflared or ngrok.

frog dev --proxy ngrok

Both options require basic setup (no longer than two minutes) and come with generious free tiers.

  • 'cloudflared' - Download the Cloudflared CLI. Cloudflared is free to use via the TryCloudflare program and does not require a Cloudflare account.
  • 'ngrok' - Sign up for a ngrok account and add your authtoken to your environment. More info on that on the ngrok README.

Once set up correctly, the proxy URL will be logged below the local server URL. For example:

[running] frog@v0.2.2
 
  Local:   http://localhost:5173/
  Proxy:   https://a01a-67-245-44-210.ngrok-free.app/  // [!code focus]