Commit 2d38d48
Miriad
fix: use after() instead of fire-and-forget in video webhook
On Vercel serverless, functions terminate after the response is sent.
The fire-and-forget pattern (promise.catch() without await) caused the
video pipeline to silently die after setting audio_gen status.
next/server's after() keeps the function alive for background work,
allowing the full pipeline (ElevenLabs TTS → GCS → Remotion → GCS)
to complete after returning 200 to Sanity.1 parent ea617ff commit 2d38d48
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | | - | |
88 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
0 commit comments