ProxyProtocol
Proxies requests for custom hosts to other servers (for dev servers with hot reload).
Proxies requests for custom hosts to other servers (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; the path and query of the request are appended to the target.
Unlike @wvb/node, the resolver cannot be a JavaScript callback: a nonblocking FFI call runs on
a worker thread that cannot re-enter the JS event loop.
Constructor
new ProxyProtocol(resolver: Record<string, string>);Prop
Type
Methods
Prop
Type