Skip to content

Commit 774e52c

Browse files
committed
Update restore-snapshot.ts
1 parent eb8127b commit 774e52c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/template-vercel/src/app/api/render/restore-snapshot.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export async function restoreSnapshot() {
1010
let snapshotId: string | null = null;
1111

1212
try {
13-
const metadata = await head(getSnapshotBlobKey());
13+
const metadata = await head(getSnapshotBlobKey(), {
14+
token: process.env.BLOB_READ_WRITE_TOKEN,
15+
});
1416
const response = await fetch(metadata.url);
1517
const cache: { snapshotId: string } = await response.json();
1618
snapshotId = cache.snapshotId;

0 commit comments

Comments
 (0)