UNPKG

supabase-lite-proxy

Version:

HTTP proxy server that bridges external API calls to browser-based Supabase Lite instances. Supports WebSocket mode for local development and PostMessage mode for production deployments.

22 lines (21 loc) 553 B
export interface ProxyServerOptions { port: number; targetUrl: string; mode?: 'websocket' | 'postmessage' | 'auto'; enableLogging?: boolean; } export declare class ProxyServer { private options; private app; private client; private server; private enableLogging; private connectionMode; constructor(options: ProxyServerOptions); private determineConnectionMode; private setupMiddleware; private setupRoutes; private setupErrorHandling; start(): Promise<void>; stop(): Promise<void>; }