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:
@@ -15,7 +15,8 @@
|
||||
*/
|
||||
|
||||
import { config } from 'dotenv';
|
||||
config();
|
||||
// 使用 override: true 确保覆盖系统环境变量
|
||||
config({ override: true });
|
||||
|
||||
import { deployProxy, deleteProxy, getProxyStatus } from '../src/deploy';
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
*/
|
||||
|
||||
import { config } from 'dotenv';
|
||||
config();
|
||||
// 使用 override: true 确保覆盖系统环境变量
|
||||
config({ override: true });
|
||||
|
||||
import { K8sClient, V1Deployment, V1Ingress, V1IngressRule, V1ServicePort } from './k8s-client';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user