constructor(options: DaytonaSandboxOptions = {}): DaytonaSandbox| Name | Type | Description |
|---|---|---|
options | DaytonaSandboxOptions | Default: {}Configuration options for the sandbox |
// Two-step initialization
const sandbox = new DaytonaSandbox({ language: "typescript" });
await sandbox.initialize();
// Or use the factory method
const sandbox = await DaytonaSandbox.create({ language: "typescript" });Create a new DaytonaSandbox instance.
Note: This only creates the instance. Call initialize() to actually
create the Daytona Sandbox, or use the static DaytonaSandbox.create() method.