addBundleToSandbox()v4.0.426
warning
Experimental package: We reserve the right to make breaking changes in order to correct bad design decisions until this notice is gone.
Copies your Remotion bundle into a sandbox. Call this after createSandbox() to add your bundle files.
Example
create-snapshot.tsconstsandbox = awaitcreateSandbox (); awaitaddBundleToSandbox ({sandbox ,bundleDir : '/path/to/bundle', }); // ... use the sandbox awaitsandbox .stop ();
Arguments
An object with the following properties:
sandbox
A Sandbox instance, typically obtained from createSandbox().
bundleDir
The path to your Remotion bundle directory, relative to the current working directory.
A bundle can be created using the npx remotion bundle command, or using the bundle() API.
Return value
Promise<void> — resolves when the bundle has been copied into the sandbox.