Skip to content

🎥 Make videos programmatically with React

Make `access` parameter optional, defaulting to `'private'`

pullfrog[bot]03357581cd65
diff --git a/packages/docs/docs/vercel/upload-to-vercel-blob.mdx b/packages/docs/docs/vercel/upload-to-vercel-blob.mdx
index 87e3f34057..7941db3973 100644
--- a/packages/docs/docs/vercel/upload-to-vercel-blob.mdx
+++ b/packages/docs/docs/vercel/upload-to-vercel-blob.mdx
@@ -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. Either `"public"` or `"private"`.
+The access level of the uploaded blob. Either `"public"` or `"private"`. Default: `"private"`.
## Return value
diff --git a/packages/vercel/src/upload-to-vercel-blob.ts b/packages/vercel/src/upload-to-vercel-blob.ts
index b3ca1c651b..3a3f33afaa 100644
--- a/packages/vercel/src/upload-to-vercel-blob.ts
+++ b/packages/vercel/src/upload-to-vercel-blob.ts
@@ -16,14 +16,14 @@ export async function uploadToVercelBlob({
blobPath,
contentType,
blobToken,
- access,
+ access = 'private',
}: {
sandbox: Sandbox;
sandboxFilePath: string;
blobPath?: string;
contentType: string;
blobToken: string;
- access: VercelBlobAccess;
+ access?: VercelBlobAccess;
}): Promise<{url: string; size: number}> {
const actualBlobPath =
blobPath ??