From e5b48d6cc9f8f6e0f58f3fe1966f604356f974fc Mon Sep 17 00:00:00 2001 From: qikongjian Date: Wed, 17 Sep 2025 12:07:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E7=94=A8=E5=90=8E=E7=AB=AF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=BF=9E=E6=8E=A5=E6=94=B9=E6=88=90process.env?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/export-service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/export-service.ts b/utils/export-service.ts index c68921a..d5bf11f 100644 --- a/utils/export-service.ts +++ b/utils/export-service.ts @@ -115,7 +115,8 @@ export class VideoExportService { this.config = { maxRetries: config.maxRetries || 3, pollInterval: config.pollInterval || 5000, // 5秒轮询 - apiBaseUrl: config.apiBaseUrl || 'https://smartcut.api.movieflow.ai' + apiBaseUrl: process.env.NEXT_PUBLIC_CUT_URL || 'https://smartcut.api.movieflow.ai', + //apiBaseUrl: config.apiBaseUrl || 'https://smartcut.api.movieflow.ai' }; } @@ -770,7 +771,7 @@ export class VideoExportService { export const videoExportService = new VideoExportService({ maxRetries: 3, pollInterval: 5000, // 5秒轮询间隔 - apiBaseUrl: 'https://smartcut.api.movieflow.ai' + // apiBaseUrl 使用环境变量 NEXT_PUBLIC_CUT_URL,在构造函数中处理 }); /**