Skip to content

Function: tunnelInterceptor()

tunnelInterceptor(options?, runtime?): Interceptor

Build the tunnel Interceptor. Pass it to createApp({ interceptor }).

A no-op (logs and returns) when none of the selected tunnel clients resolve usable configuration, so an app can register it unconditionally.

string = ...

string = ...

string = ...

string = ...

string = ...

number = ...

boolean = ...

string = ...

number = ...

string = ...

string = ...

string = ...

"portr" | "frp" | "both" = ...

TunnelRuntime = defaultRuntime

Interceptor

import { appkit } from "@dbx-tools/appkit";
import { tunnelInterceptor } from "@dbx-tools/tunnel";
await appkit.createApp({
plugins: [server({ host, staticPath })],
interceptor: tunnelInterceptor(),
});