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.
Constructor
new LocalProtocol(hosts: Record<string, string>);Prop
Type
Methods
Prop
Type