Sandbox lifecycle
Pause and resume
Sandboxes can be paused to save resources and resumed when needed:- Pause — Schedules the sandbox to stop after a delay. Accepts a
delaySecondsparameter. - Resume — Immediately restarts a paused sandbox.
State management
Each sandbox maintains a state object that tracks:- Environment configurations — Separate state for
dev,preview, andproduction. - Dev deploy map — Tracks development deployments.
- Navigations — UI navigation state.
Secrets per environment
Secrets in sandboxes are scoped to environments, allowing different configurations for development, preview, and production:List secrets for an environment
Set secrets
Update a single secret
Sandbox files
Sandboxes have their own file storage, separate from the main file management system:- List files — View all files in the sandbox.
- Save files — Write files to the sandbox.
- Bulk upload — Upload multiple files at once via the
/upload-files-to-sandboxendpoint.
Dev server connections
Each sandbox can have active development server connections. You can:- List connections — See all active connections to the sandbox.
- Disconnect — Force-disconnect dev server connections when needed.
Sandbox configuration
Sandboxes expose configuration through several endpoints:Deployment from sandbox
Sandboxes support a deployment flow where changes move through environments:- Dev — Active development in the sandbox.
- Preview — Deployed for testing with isolated database and secrets.
- Production — Live deployment accessible to users.
POST /post-deploy-worker endpoint to trigger post-deployment processing.