fix: corregir FUNCTION_INVOCATION_FAILED y audio m4a de Instagram

- vercel.json: revertir maxDuration a 60s (300 rompe planes Hobby)
- transcriptor: detectar extensión real del audio (TikTok→mp3,
  Instagram→m4a) para enviar el MIME type correcto a Whisper;
  enviarlo como mp3 cuando es m4a causaba fallo de decodificación

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-01 10:23:01 -05:00
parent 21cf1c16a5
commit 4aecbef343
2 changed files with 6 additions and 3 deletions

View File

@ -2,8 +2,7 @@
"buildCommand": "cd frontend && npm install && npm run build",
"outputDirectory": "frontend/dist",
"functions": {
"api/analizar.js": { "maxDuration": 300 },
"api/generar.js": { "maxDuration": 120 }
"api/**/*.js": { "maxDuration": 60 }
},
"rewrites": [
{ "source": "/api/(.*)", "destination": "/api/$1" },