forked from 77media/video-flow
调用后端接口连接改成process.env配置
This commit is contained in:
parent
4ae7bec067
commit
e5b48d6cc9
@ -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,在构造函数中处理
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user