Skip to content

🎥 Make videos programmatically with React

`@remotion/vercel`: Make `access` required again

Jonny Burger4acb8e0643f5
diff --git a/packages/docs/docs/vercel/upload-to-vercel-blob.mdx b/packages/docs/docs/vercel/upload-to-vercel-blob.mdx
index 70571ff3fd..87e3f34057 100644
--- a/packages/docs/docs/vercel/upload-to-vercel-blob.mdx
+++ b/packages/docs/docs/vercel/upload-to-vercel-blob.mdx
@@ -56,11 +56,11 @@ The MIME type of the file, e.g. `"video/mp4"` or `"image/png"`.
Your Vercel Blob read/write token. Typically `process.env.BLOB_READ_WRITE_TOKEN`.
-### `access?`
+### `access`
<TsType type="VercelBlobAccess" source="@remotion/vercel" href="/docs/vercel/types#vercelblobaccess" />
-The access level of the uploaded blob. Either `"public"` or `"private"`. Default: `"private"`.
+The access level of the uploaded blob. Either `"public"` or `"private"`.
## Return value
diff --git a/packages/vercel/src/upload-to-vercel-blob.ts b/packages/vercel/src/upload-to-vercel-blob.ts
index d151484abf..b3ca1c651b 100644
--- a/packages/vercel/src/upload-to-vercel-blob.ts
+++ b/packages/vercel/src/upload-to-vercel-blob.ts
@@ -23,7 +23,7 @@ export async function uploadToVercelBlob({
blobPath?: string;
contentType: string;
blobToken: string;
- access?: VercelBlobAccess;
+ access: VercelBlobAccess;
}): Promise<{url: string; size: number}> {
const actualBlobPath =
blobPath ??
@@ -34,7 +34,7 @@ export async function uploadToVercelBlob({
blobPath: actualBlobPath,
contentType,
blobToken,
- access: access ?? 'private',
+ access,
};
const uploadCmd = await sandbox.runCommand({