Persist files long-term by attaching and using volumes.
name
and specify its size
in megabytes (MB). This volume exists independently of any sandbox.
Set up authentication to Blaxel
.env
file (BL_WORKSPACE
and BL_API_KEY
, or see this page for other authentication options).volumes
property.
Each configuration must include the name
of the volume to attach and the mountPath
where it will be accessible inside the sandboxβs filesystem. The mount path will override the existing content of a directory.
/app
directory within this sandbox will be stored on my-volume
and will persist even if this sandbox is deleted.
At this time, you cannot detach a volume from a sandbox.