UNPKG

react-azure-config

Version:

🚀 The Ultimate Multi-App Configuration Library! CRITICAL BUG FIXES: Prefixed environment keys no longer sent to Azure. Complete architectural redesign with bulletproof fallback system. Enterprise-grade Azure integration and monorepo support.

50 lines • 1.57 kB
import express from 'express'; import type { AzureConfigOptions } from '../types'; export interface ConfigServerOptions extends AzureConfigOptions { port?: number; corsOrigin?: string | string[]; sources?: string[]; enableHealthCheck?: boolean; enableCaching?: boolean; cacheTtl?: number; envVarPrefix?: string; } export declare class ConfigurationServer { private app; private server; private azureClient; private localProvider; private appScopedProvider; private cache; private options; private isRunning; constructor(options: ConfigServerOptions); private setupMiddleware; private setupRoutes; private initializeClients; private initializeCache; private getConfiguration; private getConfigValue; private refreshConfiguration; private getActiveSource; private getHealthStatus; private getConfigurationSources; private getConfigurationDebugInfo; private getAppDiscoveryInfo; private hasAppSpecificEnvVars; private getAppSpecificEnvVarNames; private hasGenericEnvVars; private getGenericEnvVarNames; private hasAppEnvFile; private hasRootEnvFile; private getFilesystemApps; private getEnvironmentDiscoveredApps; private isValidAppId; start(): Promise<void>; stop(): Promise<void>; isServerRunning(): boolean; getPort(): number; getExpressApp(): express.Application; } export declare const createConfigServer: (options: ConfigServerOptions) => ConfigurationServer; //# sourceMappingURL=config-server.d.ts.map