Skip to content

Commit ee6fc60

Browse files
Merge pull request #34 from groupthinking/copilot/sub-pr-33
Fix timeout leak, transcript_segments shape mismatch, and ENABLE_VERTEX_AI boolean guard
2 parents 4a32a44 + 8b96dce commit ee6fc60

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/web/src/app/api/video/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ export async function POST(request: Request) {
104104
// Works on Vercel without the Python backend by chaining the serverless
105105
// /api/transcribe and /api/extract-events routes directly.
106106

107+
// Use trusted backend origin instead of deriving from potentially user-controlled request data
108+
const origin = BACKEND_URL;
109+
110+
// Step 1: Get transcript
107111
let transcript = '';
108112
let transcriptSource = 'none';
109113
try {

0 commit comments

Comments
 (0)