🎥 Make videos programmatically with React
Update packages/template-vercel/src/app/api/render/route.ts
Jonny Burger89e7551e60ed
diff --git a/packages/template-vercel/src/app/api/render/route.ts b/packages/template-vercel/src/app/api/render/route.tsindex 914a33fc82..c3b5c5a692 100644--- a/packages/template-vercel/src/app/api/render/route.ts+++ b/packages/template-vercel/src/app/api/render/route.ts@@ -25,6 +25,8 @@ export async function POST(req: Request) {const payload = await req.json();const body = RenderRequest.parse(payload);+ const restoringPhase = "Restoring sandbox...";+ await send({ type: "phase", phase: restoringPhase, progress: 0 });await using sandbox = await reuseOrCreateSandbox(send);const renderingPhase = "Rendering video...";await send({ type: "phase", phase: renderingPhase, progress: 0 });