LocalProtocol

Proxies requests for custom hosts to localhost URLs (for dev servers with hot reload).

Proxies requests for custom hosts to localhost URLs (for dev servers with hot reload). Maps a custom host to a base URL — e.g. { app: 'http://localhost:5173' } serves app://app/index.html from the dev server.

View source ↗

Constructor

new LocalProtocol(hosts: Record<string, string>);

Prop

Type

Methods

Prop

Type

On this page