Skip to content

🎥 Make videos programmatically with React

alright

Jonny Burgerc9371ad95e7a
diff --git a/packages/docs/docs/vercel/add-bundle-to-sandbox.mdx b/packages/docs/docs/vercel/add-bundle-to-sandbox.mdx
index beb536b36e..a6c4161af9 100644
--- a/packages/docs/docs/vercel/add-bundle-to-sandbox.mdx
+++ b/packages/docs/docs/vercel/add-bundle-to-sandbox.mdx
@@ -35,11 +35,12 @@ An object with the following properties:
### `sandbox`
-A [`VercelSandbox`](/docs/vercel/types#vercelsandbox) instance, typically obtained from [`createSandbox()`](/docs/vercel/create-sandbox).
+A [`Sandbox`](https://vercel.com/docs/vercel-sandbox/sdk-reference#sandbox-class) instance, typically obtained from [`createSandbox()`](/docs/vercel/create-sandbox).
### `bundleDir`
-The path to your Remotion bundle directory, relative to the current working directory. This is the output of [`npx remotion bundle`](/docs/cli/bundle).
+The path to your Remotion bundle directory, relative to the current working directory.
+A bundle can be created using the [`npx remotion bundle`](/docs/cli/bundle) command, or using the [`bundle()`](/docs/bundle) API.
## Return value
diff --git a/packages/vercel/src/add-bundle-to-sandbox.ts b/packages/vercel/src/add-bundle-to-sandbox.ts
index c45888ecea..9a1b4936ef 100644
--- a/packages/vercel/src/add-bundle-to-sandbox.ts
+++ b/packages/vercel/src/add-bundle-to-sandbox.ts
@@ -1,11 +1,11 @@
+import type {Sandbox} from '@vercel/sandbox';
import {addBundleToSandbox as addBundleInternal} from './internals/add-bundle';
-import type {VercelSandbox} from './types';
export async function addBundleToSandbox({
sandbox,
bundleDir,
}: {
- sandbox: VercelSandbox;
+ sandbox: Sandbox;
bundleDir: string;
}): Promise<void> {
await addBundleInternal({sandbox, bundleDir});
diff --git a/packages/vercel/src/internals/add-bundle.ts b/packages/vercel/src/internals/add-bundle.ts
index f0163e5164..7f03f6f5aa 100644
--- a/packages/vercel/src/internals/add-bundle.ts
+++ b/packages/vercel/src/internals/add-bundle.ts
@@ -54,7 +54,7 @@ export const addBundleToSandbox = async ({
sandbox,
bundleDir,
}: {
- sandbox: Sandbox & AsyncDisposable;
+ sandbox: Sandbox;
bundleDir: string;
}) => {
ensureLocalBundle(bundleDir);