Type Alias ProxyRuntimeGate

ProxyRuntimeGate: "browser" | "always" | ((env: ProxyRuntimeEnv) => boolean)

Controls when the proxy middleware applies:

  • "browser" — only when a DOM window is available (default).
  • "always" — in every runtime (Node, Electron, Bun, workers, etc.).
  • A predicate receiving ProxyRuntimeEnv — full control per call.