Commit 598f9479 authored by Lembot's avatar Lembot
Browse files

feat: add environment-based local auth mode for ai-delegate



Add `isLocalAuthEnabled()` utility function that controls the
`allowLocalMode` option for ai-delegate initialization:

- Explicit override via NEXT_PUBLIC_AI_DELEGATE_LOCAL_AUTH env var
- Defaults to development mode (NODE_ENV === 'development')
- Adds console logging showing local auth mode status

This allows local auth mode to be disabled in development or
enabled in production as needed via environment configuration.

Closes #136

Co-Authored-By: default avatarClaude Opus 4.5 <noreply@anthropic.com>
parent 1b193039
Loading
Loading
Loading
Loading