Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/template-vercel/create-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 5 additions & 1 deletion packages/template-vercel/src/app/api/render/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading