diff --git a/src/utils/api.ts b/src/utils/api.ts index c99cf95..ce53aa5 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -304,8 +304,8 @@ export async function uploadImages( } } -// 영상 생성 완료까지 폴링 (3분 타임아웃, 3초 간격) -const VIDEO_POLL_TIMEOUT = 3 * 60 * 1000; // 3분 +// 영상 생성 완료까지 폴링 (10분 타임아웃, 3초 간격) +const VIDEO_POLL_TIMEOUT = 10 * 60 * 1000; // 10분 const VIDEO_POLL_INTERVAL = 3000; // 3초 export async function waitForVideoComplete( @@ -316,7 +316,7 @@ export async function waitForVideoComplete( // 재귀적으로 폴링하는 방식으로 변경 (async/await 제대로 동작) const poll = async (): Promise => { - // 3분 타임아웃 체크 + // 10분 타임아웃 체크 if (Date.now() - startTime > VIDEO_POLL_TIMEOUT) { throw new Error('TIMEOUT'); }