调用后端接口连接改成process.env配置

This commit is contained in:
qikongjian 2025-09-17 12:07:55 +08:00
parent 4ae7bec067
commit e5b48d6cc9

View File

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