Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
6 changes: 3 additions & 3 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/docs/docs/vercel/types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ import type {VercelBlobAccess} from '@remotion/vercel';
// ^?
```

Currently only `"public"`. Used as the `access` parameter for [`uploadToVercelBlob()`](/docs/vercel/upload-to-vercel-blob).
Either `"public"` or `"private"`. Used as the `access` parameter for [`uploadToVercelBlob()`](/docs/vercel/upload-to-vercel-blob).
2 changes: 1 addition & 1 deletion packages/docs/docs/vercel/upload-to-vercel-blob.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Your Vercel Blob read/write token. Typically `process.env.BLOB_READ_WRITE_TOKEN`

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

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

## Return value

Expand Down
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: "public",
access: "private",
contentType: "application/json",
addRandomSuffix: false,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/template-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@remotion/tailwind-v4": "workspace:*",
"@remotion/vercel": "workspace:*",
"@types/bun": "1.3.3",
"@vercel/blob": "2.0.1",
"@vercel/blob": "2.3.0",
"@vercel/functions": "^3.4.1",
"@vercel/sandbox": "1.6.0",
"clsx": "2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"devDependencies": {
"@remotion/eslint-config-internal": "workspace:*",
"@vercel/blob": "2.0.1",
"@vercel/blob": "2.3.0",
"@vercel/sandbox": "1.6.0",
"eslint": "catalog:",
"@typescript/native-preview": "catalog:"
Expand Down
3 changes: 2 additions & 1 deletion packages/vercel/src/scripts/upload-blob.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import {put} from '@vercel/blob';
import {readFileSync, statSync} from 'fs';
import type {VercelBlobAccess} from '../types';

type UploadBlobConfig = {
sandboxFilePath: string;
blobPath: string;
contentType: string;
blobToken: string;
access: 'public';
access: VercelBlobAccess;
};

const config: UploadBlobConfig = JSON.parse(process.argv[2]);
Expand Down
2 changes: 1 addition & 1 deletion packages/vercel/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export type {
ProResProfile,
} from '@remotion/renderer/client';

export type VercelBlobAccess = 'public';
export type VercelBlobAccess = 'public' | 'private';

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