fix: 使用 dotenv override 确保正确读取 .env 配置

- 添加 override: true 选项覆盖系统环境变量
- 确保 ANTHROPIC_BASE_URL 从项目 .env 文件读取

Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
D8D Developer
2026-03-20 12:12:34 +00:00
parent ce0b822b63
commit e743fc9bcd
2 changed files with 4 additions and 2 deletions

View File

@@ -15,7 +15,8 @@
*/
import { config } from 'dotenv';
config();
// 使用 override: true 确保覆盖系统环境变量
config({ override: true });
import { deployProxy, deleteProxy, getProxyStatus } from '../src/deploy';

View File

@@ -3,7 +3,8 @@
*/
import { config } from 'dotenv';
config();
// 使用 override: true 确保覆盖系统环境变量
config({ override: true });
import { K8sClient, V1Deployment, V1Ingress, V1IngressRule, V1ServicePort } from './k8s-client';