TypeScript Types Reference
Experimental package: We reserve the right to make breaking changes in order to correct bad design decisions until this notice is gone.
The following types are part of the API of @remotion/vercel:
VercelSandbox
import type {VercelSandbox } from '@remotion/vercel';A Sandbox with AsyncDisposable support. Returned by createSandbox().
CreateSandboxOnProgress
import type {CreateSandboxOnProgress } from '@remotion/vercel';progress: A number from0to1indicating overall progressmessage: A human-readable description of the current phase
RenderMediaOnVercelProgress
import type {RenderMediaOnVercelProgress } from '@remotion/vercel';A discriminated union (on stage) with the following members:
{stage: 'opening-browser', overallProgress: number}- The browser is being opened.{stage: 'selecting-composition', overallProgress: number}- The composition is being selected.{stage: 'render-progress', progress: RenderMediaProgress, overallProgress: number}- The render is in progress. Theprogressfield contains the same fields asRenderMediaProgress.
Every variant includes overallProgress — a number from 0 to 1 representing the weighted overall progress.
Used as the onProgress callback type for renderMediaOnVercel().
RenderMediaProgress
See RenderMediaOnProgress in @remotion/renderer.
RenderProgressv4.0.469
import type {RenderProgress } from '@remotion/vercel';A discriminated union (on stage) returned by getRenderProgress().
{stage: 'starting', overallProgress: number}- The sandbox command started, but no progress file exists yet.{stage: 'opening-browser', overallProgress: number}- The browser is being opened.{stage: 'selecting-composition', overallProgress: number}- The composition is being selected.{stage: 'render-progress', progress: RenderMediaProgress, overallProgress: number}- The render is in progress.{stage: 'uploading', overallProgress: number}- The rendered video is being uploaded to Vercel Blob.{stage: 'done', url: string, size: number, contentType: string, overallProgress: number}- The render finished and was uploaded.{stage: 'error', message: string, overallProgress: number}- The render failed.{stage: 'expired'}- The sandbox no longer exists.
RenderStillOnVercelProgress
import type {RenderStillOnVercelProgress } from '@remotion/vercel';A discriminated union (on stage) with the following members:
{stage: 'opening-browser', overallProgress: number}- The browser is being opened.{stage: 'selecting-composition', overallProgress: number}- The composition is being selected.
Every variant includes overallProgress — a number from 0 to 1 representing the weighted overall progress.
Used as the onProgress callback type for renderStillOnVercel().
VercelBlobAccess
import type {VercelBlobAccess } from '@remotion/vercel';Either "public" or "private". Used as the access parameter for uploadToVercelBlob().
VercelBlobUploadOptionsv4.0.469
import type {VercelBlobUploadOptions } from '@remotion/vercel';Used by renderMediaOnVercel({detached: true}) to upload the render from inside the sandbox.
blobToken
A Vercel Blob read-write token.
access
Either "public" or "private".
blobPath?
The path where the file should be stored in Vercel Blob. Default: A random path under renders/.