feat: Add Remotion video rendering endpoint with image uploads, text overlay, and TTS generation.

This commit is contained in:
Michael committed 2026-03-24 13:39:28 +01:00
1 parent e472e05a3b
commit b15ba68b78
1 file changed
+2 -3
+2 -3
View File
@@ -28,9 +28,8 @@ let remotionBundleCache: string | null = null;
async function getBundle(): Promise<string> {
if (remotionBundleCache) return remotionBundleCache;
// Resolve relative to this file so it works in Docker and locally
// __dirname = server/routes, so ../.. → project root → client/src/remotion/index.ts
const entryPoint = path.resolve(__dirname, "../../client/src/remotion/index.ts");
// Use process.cwd() (= /app in Docker, project root in dev) — works in both CJS and ESM
const entryPoint = path.resolve(process.cwd(), "client/src/remotion/index.ts");
console.log("📦 Bundling Remotion from:", entryPoint);
remotionBundleCache = await bundle({ entryPoint });
console.log("📦 Bundle cached at:", remotionBundleCache);