🎥 Make videos programmatically with React
apply cherry pick
Jonny Burgerabfc53993bd8
diff --git a/packages/template-vercel/src/app/api/render/sandbox/install-js-dependencies.ts b/packages/template-vercel/src/app/api/render/sandbox/install-js-dependencies.tsindex bcc91806ce..aada5271be 100644--- a/packages/template-vercel/src/app/api/render/sandbox/install-js-dependencies.ts+++ b/packages/template-vercel/src/app/api/render/sandbox/install-js-dependencies.ts@@ -8,7 +8,12 @@ export async function installJsDependencies({}): Promise<void> {const installCmd = await sandbox.runCommand({cmd: "pnpm",- args: [`i`, `@remotion/renderer@${VERSION}`, `@vercel/blob`],+ args: [+ `i`,+ `@remotion/renderer@${VERSION}`,+ `@remotion/compositor-linux-x64-gnu@${VERSION}`,+ `@vercel/blob`,+ ],detached: true,});diff --git a/packages/template-vercel/src/app/api/render/sandbox/patch-compositor.ts b/packages/template-vercel/src/app/api/render/sandbox/patch-compositor.tsindex 0e581c4d56..b4d9f90cb3 100644--- a/packages/template-vercel/src/app/api/render/sandbox/patch-compositor.ts+++ b/packages/template-vercel/src/app/api/render/sandbox/patch-compositor.ts@@ -22,7 +22,13 @@ export async function patchCompositor({const script = `set -euo pipefail-COMPOSITOR_BIN="$(find node_modules/@remotion/compositor-linux-x64-gnu -name remotion -type f | head -1)"+COMPOSITOR_BIN=""+for dir in node_modules/@remotion/compositor-linux-x64-gnu node_modules/@remotion/compositor-linux-x64-musl; do+ if [ -d "$dir" ]; then+ COMPOSITOR_BIN="$(find "$dir" -name remotion -type f | head -1)"+ [ -n "$COMPOSITOR_BIN" ] && break+ fi+doneif [ -z "$COMPOSITOR_BIN" ]; thenecho "Compositor binary not found, skipping patch"