Skip to content

Function: tunnelInterceptor()

tunnelInterceptor(options?): 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.

TunnelInterceptorOptions = {}

Interceptor

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