Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/content/docs/sandbox/configuration/sandbox-options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ When `keepAlive: true` is set, containers will not automatically timeout. They m

Duration of inactivity before the sandbox automatically sleeps. Accepts duration strings (`"30s"`, `"5m"`, `"1h"`) or numbers (seconds).

:::note[Bug fix in v0.2.17]
Prior to v0.2.17, the `sleepAfter` option passed to `getSandbox()` was ignored due to a timing issue. The option is now properly applied when creating sandbox instances.
:::

<TypeScriptExample>
```ts
// Sleep after 30 seconds of inactivity
Expand Down
Loading