Skip to content
Français

VercelOptions

import type { VercelOptions } from "@elie-laloum/outpost/providers/vercel";
  • cachesOptional
    readonly CloudDependencyCache[] | undefined
    Opt-in download caches under /outpost/cache/<name>, restored on acquire and saved before stop through each cache’s required transport. Identity includes the canonical host repository, Vercel runtime/image/source, sandbox UID/GID, name and key. No package-manager variables are set automatically.
  • repositoryModeOptional
    "isolated" | undefined
    isolated (the default and only supported mode) keeps the checkout and Git directory private to the cloud sandbox. History and selected inputs upload; validated commits and file changes synchronize back without importing sandbox configuration, hooks or unrelated refs. Other modes fail with code configuration before allocation.
  • egressOptional
    EgressPolicy | undefined
    Portable policy translated to Vercel’s firewall when the provider is created: domains match the TLS server name, allowCidrs grant IP access on their own and denyCidrs take priority. Setting create.networkPolicy too fails with code configuration.
  • createOptional
    NonNullable<(WithPrivate<((BaseCreateSandboxParams & ({ runtime?: RUNTIMES | (string & {}); image?: never; } | { runtime?: never; image?: (string & {}) | "vercel/sandbox/universal" | "vercel/sandbox/node:22" | "vercel/sandbox/node:24" | "vercel/sandbox/node:26" | "vercel/sandbox/python:3.14" | "vercel/sandbox/ubuntu" | "vercel/sandbox/arch"; })) | (Omit<BaseCreateSandboxParams, "source"> & { source: { type: "snapshot"; snapshotId: string; }; runtime?: never; image?: never; })) | (((BaseCreateSandboxParams & ({ runtime?: RUNTIMES | (string & {}); image?: never; } | { runtime?: never; image?: (string & {}) | "vercel/sandbox/universal" | "vercel/sandbox/node:22" | "vercel/sandbox/node:24" | "vercel/sandbox/node:26" | "vercel/sandbox/python:3.14" | "vercel/sandbox/ubuntu" | "vercel/sandbox/arch"; })) | (Omit<BaseCreateSandboxParams, "source"> & { source: { type: "snapshot"; snapshotId: string; }; runtime?: never; image?: never; })) & Credentials)> & WithFetchOptions) | undefined> | undefined
    Options passed to Sandbox.create() from @vercel/sandbox; Outpost adds the sandbox environment to env.
  • variablesOptional
    Readonly<Record<string, string>> | undefined
    Environment variables set for every command in the sandbox, as literal values. A key the agent also declares fails with code configuration.
  • rootOptional
    string | undefined
    Repository directory inside the sandbox, default /vercel/sandbox/outpost.
  • retainOptional
    number | undefined
    Bytes of output tail kept per stream, default 65536.
import type { Sandbox } from "@vercel/sandbox";

export interface VercelOptions {
  readonly caches?: readonly CloudDependencyCache[];
  readonly repositoryMode?: "isolated";
  readonly egress?: EgressPolicy;
  readonly create?: NonNullable<Parameters<typeof Sandbox.create>[0]>;
  readonly variables?: Variables;
  readonly root?: string;
  readonly retain?: number;
}