diff --git a/packages/template-vercel/create-snapshot.ts b/packages/template-vercel/create-snapshot.ts index e29ff944103..097be957e5f 100644 --- a/packages/template-vercel/create-snapshot.ts +++ b/packages/template-vercel/create-snapshot.ts @@ -21,7 +21,7 @@ const snapshot = await sandbox.snapshot({ expiration: 0 }); const { snapshotId } = snapshot; await put(getSnapshotBlobKey(), JSON.stringify({ snapshotId }), { - access: "private", + access: "public", contentType: "application/json", addRandomSuffix: false, }); diff --git a/packages/template-vercel/src/app/api/render/restore-snapshot.ts b/packages/template-vercel/src/app/api/render/restore-snapshot.ts index b949c2dd661..4a6b2330721 100644 --- a/packages/template-vercel/src/app/api/render/restore-snapshot.ts +++ b/packages/template-vercel/src/app/api/render/restore-snapshot.ts @@ -8,7 +8,7 @@ const getSnapshotBlobKey = () => export async function restoreSnapshot() { const blob = await get(getSnapshotBlobKey(), { - access: "private", + access: "public", token: process.env.BLOB_READ_WRITE_TOKEN, }); if (!blob) { diff --git a/packages/template-vercel/src/app/api/render/route.ts b/packages/template-vercel/src/app/api/render/route.ts index 6932faaae2d..1e6215b7dff 100644 --- a/packages/template-vercel/src/app/api/render/route.ts +++ b/packages/template-vercel/src/app/api/render/route.ts @@ -7,7 +7,11 @@ import { import { waitUntil } from "@vercel/functions"; import { COMP_NAME } from "../../../../types/constants"; import { RenderRequest } from "../../../../types/schema"; -import { bundleRemotionProject, formatSSE, type RenderProgress } from "./helpers"; +import { + bundleRemotionProject, + formatSSE, + type RenderProgress, +} from "./helpers"; import { restoreSnapshot } from "./restore-snapshot"; export async function POST(req: Request) {