Skip to content

VercelSandboxProvider

Persistent named sandboxes on Vercel. Logical IDs are project-scoped sandbox names; filesystem snapshots survive stops while the processes belong to one VM session.

Since v0.1.0

Constructs a Vercel provider with explicit account credentials.

Signature

declare const make: (
options: Options
) => Effect.Effect<
{
readonly create: <E = never>(
options?: SandboxProvider.CreateOptions<E>
) => Effect.Effect<Sandbox.Sandbox["Service"], SandboxError.SandboxError | E>
readonly createScoped: <E = never>(
options?: SandboxProvider.CreateOptions<E>
) => Effect.Effect<Sandbox.Sandbox["Service"], SandboxError.SandboxError | E, Scope>
readonly resume: (id: Sandbox.SandboxId) => Effect.Effect<Sandbox.Sandbox["Service"], SandboxError.SandboxError>
},
never,
Crypto.Crypto
>

Source

Since v0.1.0

Signature

declare const layer: (options: Options) => Layer.Layer<SandboxProvider.SandboxProvider, never, Crypto.Crypto>

Source

Since v0.1.0

Signature

export interface Options {
readonly token: Redacted.Redacted<string>
readonly teamId: string
readonly projectId: string
readonly image?: string
readonly timeoutMs?: number
/** The SDK transport, for proxies and tests; credentials are still explicit. */
readonly fetch?: typeof globalThis.fetch
}

Source

Since v0.1.0

Overrides under providerOptions.vercel, validated before allocating.

Signature

declare const ProviderOptions: Schema.Struct<{
readonly image: Schema.optionalKey<Schema.String>
readonly timeoutMs: Schema.optionalKey<Schema.Int>
}>

Source

Since v0.1.0

Signature

type ProviderOptions = typeof ProviderOptions.Type

Source

Since v0.1.0