INNER CODE UNIT · TypeScript

initConfig

eclaire-labs/eclaire · apps/backend/src/config/index.ts:48

export function initConfig(): EclaireConfig {
  const warnings = validateConfig(_config);

  // Log where secrets came from
  const sourceMessages: Record<SecretsSource, string> = {
    env: "loaded from .env",
    environment: "loaded from environment",
  };
  console.log(`ℹ️  Secrets: ${sourceMessages[_config.security.secretsSource]}`);

  // Log warnings
  if (warnings.length > 0) {
    console.log("\n⚠️  Configuration Warnings:");
    for (const warning of warnings) {
      console.log(`   - ${warning}`);
    }
    console.log("");
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…