chore: 切换到生产模式并清理配置
- 移除 docker-compose.yml 中已过时的 version 字段 - 将 dev_mode 设置为 false - 添加 accounts.json 加载调试日志 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
3
auth.js
3
auth.js
@@ -68,10 +68,13 @@ function generateClientId() {
|
||||
function loadAuthConfig() {
|
||||
// 0. Check accounts.json for multi-account mode (highest priority)
|
||||
const accountsPath = path.join(process.cwd(), 'accounts.json');
|
||||
logDebug(`Checking accounts.json at: ${accountsPath}`);
|
||||
try {
|
||||
if (fs.existsSync(accountsPath)) {
|
||||
logDebug('accounts.json exists, reading...');
|
||||
const accountsContent = fs.readFileSync(accountsPath, 'utf-8');
|
||||
const accountsData = JSON.parse(accountsContent);
|
||||
logDebug(`accounts.json parsed, accounts: ${accountsData.accounts?.length || 0}`);
|
||||
|
||||
if (accountsData.accounts && accountsData.accounts.length > 0) {
|
||||
const activeAccounts = accountsData.accounts.filter(acc => acc.status === 'active');
|
||||
|
||||
Reference in New Issue
Block a user