Skip to content

Function: startProxyServer()

startProxyServer(backend, options?): Promise<{ server: Server; url: string; }>

Build and start the proxy, resolving once it is accepting connections. Returns the server and its base URL (with the actually-bound port, so a port: 0 request surfaces the OS-assigned port).

ModelProxyBackend

StartProxyOptions = {}

Promise<{ server: Server; url: string; }>