Skip to content

serve

function serve(options): Promise<RunningServer>;

Defined in: src/cli/index.ts:633

The serve command: read the common env (PORT, BASE_PATH, TITLE, LOGO_URL, READONLY), warn on AUTH_MODE=none, build the panel, print the banner and listen. The server owns the process: it never resolves, so the bin doesn’t exit (unless returnServer).

Parameter Type
options ServeOptions & object

Promise<RunningServer>

function serve(options): Promise<never>;

Defined in: src/cli/index.ts:634

The serve command: read the common env (PORT, BASE_PATH, TITLE, LOGO_URL, READONLY), warn on AUTH_MODE=none, build the panel, print the banner and listen. The server owns the process: it never resolves, so the bin doesn’t exit (unless returnServer).

Parameter Type
options ServeOptions

Promise<never>