From e743fc9bcd5851c1874804438fd62fde5f9a6257 Mon Sep 17 00:00:00 2001 From: D8D Developer Date: Fri, 20 Mar 2026 12:12:34 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=20dotenv=20override?= =?UTF-8?q?=20=E7=A1=AE=E4=BF=9D=E6=AD=A3=E7=A1=AE=E8=AF=BB=E5=8F=96=20.en?= =?UTF-8?q?v=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 override: true 选项覆盖系统环境变量 - 确保 ANTHROPIC_BASE_URL 从项目 .env 文件读取 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- scripts/deploy.ts | 3 ++- src/deploy.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.ts b/scripts/deploy.ts index 6a30b17..4de78be 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -15,7 +15,8 @@ */ import { config } from 'dotenv'; -config(); +// 使用 override: true 确保覆盖系统环境变量 +config({ override: true }); import { deployProxy, deleteProxy, getProxyStatus } from '../src/deploy'; diff --git a/src/deploy.ts b/src/deploy.ts index b51db1d..3fb978b 100644 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -3,7 +3,8 @@ */ import { config } from 'dotenv'; -config(); +// 使用 override: true 确保覆盖系统环境变量 +config({ override: true }); import { K8sClient, V1Deployment, V1Ingress, V1IngressRule, V1ServicePort } from './k8s-client';