Skip to content

🎥 Make videos programmatically with React

Update create-snapshot.ts

Jonny Burger2660c56a1788
diff --git a/packages/template-vercel/create-snapshot.ts b/packages/template-vercel/create-snapshot.ts
index ba98ccbe7c..f2ec3396de 100644
--- a/packages/template-vercel/create-snapshot.ts
+++ b/packages/template-vercel/create-snapshot.ts
@@ -1,16 +1,16 @@
-import { createSandbox } from './src/app/api/render/sandbox/create-sandbox';
-import { saveSnapshotCache } from './src/app/api/render/sandbox/snapshots';
+import { createSandbox } from "./src/app/api/render/sandbox/create-sandbox";
+import { saveSnapshotCache } from "./src/app/api/render/sandbox/snapshots";
const sandbox = await createSandbox({
onProgress: async (progress) => {
- if (progress.type === 'phase') {
+ if (progress.type === "phase") {
const pct = Math.round((progress.progress ?? 0) * 100);
console.log(`[create-snapshot] ${progress.phase} (${pct}%)`);
}
},
});
-console.log('[create-snapshot] Taking snapshot...');
+console.log("[create-snapshot] Taking snapshot...");
const snapshot = await sandbox.snapshot({ expiration: 0 });
await saveSnapshotCache(snapshot.snapshotId);