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,在构造函数中处理 }); /**