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.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Interceptor
Example
Section titled “Example”import { appkit } from "@dbx-tools/appkit";import { tunnelInterceptor } from "@dbx-tools/tunnel";
await appkit.createApp({ plugins: [server({ host, staticPath })], interceptor: tunnelInterceptor(),});