🎥 Make videos programmatically with React
Update snapshots.ts
Jonny Burger56038b28263c
diff --git a/packages/template-vercel/src/app/api/render/sandbox/snapshots.ts b/packages/template-vercel/src/app/api/render/sandbox/snapshots.tsindex 90dd3299e0..31b9b158e0 100644--- a/packages/template-vercel/src/app/api/render/sandbox/snapshots.ts+++ b/packages/template-vercel/src/app/api/render/sandbox/snapshots.ts@@ -1,10 +1,10 @@-import { head, put } from '@vercel/blob';+import { head, put } from "@vercel/blob";type SnapshotCache = {snapshotId: string;};-const SNAPSHOT_BLOB_KEY = `snapshot-cache/${process.env.VERCEL_DEPLOYMENT_ID ?? 'local'}.json`;+const SNAPSHOT_BLOB_KEY = `snapshot-cache/${process.env.VERCEL_DEPLOYMENT_ID ?? "local"}.json`;export async function getCachedSnapshot(): Promise<string | null> {if (!process.env.VERCEL) {@@ -28,8 +28,8 @@ export async function saveSnapshotCache(snapshotId: string): Promise<void> {};await put(SNAPSHOT_BLOB_KEY, JSON.stringify(cache), {- access: 'public',- contentType: 'application/json',+ access: "public",+ contentType: "application/json",addRandomSuffix: false,});}