UNPKG

@kraveir0/webapi-proxy-interceptor

Version:

Drop-in replacement for PCF WebAPI that automatically routes calls to your local development proxy.

24 lines 906 B
/** * Configuration options for the WebAPI Proxy Interceptor */ export interface ProxyInterceptorConfig { /** Base URL of the proxy server (default: http://localhost:3000) */ proxyUrl?: string; /** Whether to enable debug logging (default: false) */ debug?: boolean; /** Whether to intercept in production builds (default: false) */ enableInProduction?: boolean; /** Custom headers to add to proxied requests */ customHeaders?: Record<string, string>; /** Timeout for proxy requests in milliseconds (default: 30000) */ timeout?: number; } /** * Default configuration for the proxy interceptor */ export declare const DEFAULT_CONFIG: Required<ProxyInterceptorConfig>; /** * Merges user configuration with defaults */ export declare function mergeConfig(userConfig?: ProxyInterceptorConfig): Required<ProxyInterceptorConfig>; //# sourceMappingURL=config.d.ts.map