Commit 3b7ce2f
fix: adicionar browserExecutable em selectComposition() do Remotion
PROBLEMA:
- selectComposition() não estava recebendo browserExecutable
- Apenas renderStill() e renderMedia() tinham a configuração
- Railway pode falhar ao selecionar composition sem Chromium correto
SOLUÇÃO:
Adicionar ...renderOptions em todas as chamadas de selectComposition()
ARQUIVOS CORRIGIDOS:
- app/api/content/[id]/generate-slides-v3/route.ts
- app/api/content/[id]/preview-carousel/route.ts
- app/api/audits/[id]/generate-audit-video/route.ts
- app/api/content/[id]/generate-reel/route.ts
- app/api/content/[id]/generate-reels-batch/route.ts
AGORA TODAS AS FUNÇÕES REMOTION RECEBEM browserExecutable:
1. selectComposition() - Corrigido
2. renderStill() - Já tinha (spread ...renderOptions)
3. renderMedia() - Já tinha (spread ...renderOptions)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 38a41b4 commit 3b7ce2f
5 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
| 572 | + | |
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
307 | | - | |
| 308 | + | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
0 commit comments