Skip to content

Commit 3d3f775

Browse files
JonnyBurgerclaude
andcommitted
@remotion/vercel: Upgrade @vercel/blob to 2.3.0 and add private upload support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a747a5b commit 3d3f775

File tree

8 files changed

+13
-12
lines changed

8 files changed

+13
-12
lines changed

bun.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docs/docs/vercel/types.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ import type {VercelBlobAccess} from '@remotion/vercel';
7272
// ^?
7373
```
7474

75-
Currently only `"public"`. Used as the `access` parameter for [`uploadToVercelBlob()`](/docs/vercel/upload-to-vercel-blob).
75+
Either `"public"` or `"private"`. Used as the `access` parameter for [`uploadToVercelBlob()`](/docs/vercel/upload-to-vercel-blob).

packages/docs/docs/vercel/upload-to-vercel-blob.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ The MIME type of the file, e.g. `"video/mp4"` or `"image/png"`.
5656

5757
Your Vercel Blob read/write token. Typically `process.env.BLOB_READ_WRITE_TOKEN`.
5858

59-
### `access`
59+
### `access?`
6060

6161
<TsType type="VercelBlobAccess" source="@remotion/vercel" href="/docs/vercel/types#vercelblobaccess" />
6262

63-
The access level of the uploaded blob. Default: `"public"`.
63+
The access level of the uploaded blob. Either `"public"` or `"private"`. Default: `"private"`.
6464

6565
## Return value
6666

packages/template-vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@remotion/tailwind-v4": "workspace:*",
2121
"@remotion/vercel": "workspace:*",
2222
"@types/bun": "1.3.3",
23-
"@vercel/blob": "2.0.1",
23+
"@vercel/blob": "2.3.0",
2424
"@vercel/functions": "^3.4.1",
2525
"@vercel/sandbox": "1.6.0",
2626
"clsx": "2.1.1",

packages/vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"devDependencies": {
4141
"@remotion/eslint-config-internal": "workspace:*",
42-
"@vercel/blob": "2.0.1",
42+
"@vercel/blob": "2.3.0",
4343
"@vercel/sandbox": "1.6.0",
4444
"eslint": "catalog:",
4545
"@typescript/native-preview": "catalog:"

packages/vercel/src/scripts/upload-blob.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import {put} from '@vercel/blob';
22
import {readFileSync, statSync} from 'fs';
3+
import type {VercelBlobAccess} from '../types';
34

45
type UploadBlobConfig = {
56
sandboxFilePath: string;
67
blobPath: string;
78
contentType: string;
89
blobToken: string;
9-
access: 'public';
10+
access: VercelBlobAccess;
1011
};
1112

1213
const config: UploadBlobConfig = JSON.parse(process.argv[2]);

packages/vercel/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export type {
4646
ProResProfile,
4747
} from '@remotion/renderer/client';
4848

49-
export type VercelBlobAccess = 'public';
49+
export type VercelBlobAccess = 'public' | 'private';
5050

5151
export type SandboxRenderMediaMessage =
5252
| {stage: 'opening-browser'; overallProgress: number}

packages/vercel/src/upload-to-vercel-blob.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function uploadToVercelBlob({
2323
blobPath?: string;
2424
contentType: string;
2525
blobToken: string;
26-
access: VercelBlobAccess;
26+
access?: VercelBlobAccess;
2727
}): Promise<{url: string; size: number}> {
2828
const actualBlobPath =
2929
blobPath ??
@@ -34,7 +34,7 @@ export async function uploadToVercelBlob({
3434
blobPath: actualBlobPath,
3535
contentType,
3636
blobToken,
37-
access,
37+
access: access ?? 'private',
3838
};
3939

4040
const uploadCmd = await sandbox.runCommand({

0 commit comments

Comments
 (0)