Part 4: Update the Snapshot
Change the image
Section titled “Change the image”Move the snapshots to Node.js 24:
export const Base = Daytona.Snapshot("Base", { image: "node:22-bookworm", image: "node:24-bookworm", cpu: 1, memory: 1, disk: 3,});Deploy the new base
Section titled “Deploy the new base”pnpm alchemy deploybun alchemy deploynpx alchemy deployyarn alchemy deployA snapshot can’t be changed, so a new image replaces Base. Warm starts from Base, so it’s captured again on the new image, with the repository cloned into it. The Worker is unchanged and isn’t redeployed.
curl -X POST "$URL/run" -d 'node --version'curl -X POST "$URL/run" -d 'node --version'curl -X POST "$URL/run" -d 'node --version'curl -X POST "$URL/run" -d 'node --version'Running sandboxes keep what they started with
Section titled “Running sandboxes keep what they started with”A sandbox keeps the disk it booted with. Users who already have a sandbox keep it, with their changes and Node.js 22. Sandboxes started after the deploy get the new base. To move a user onto it, delete their sandbox; their next request starts a new one from Warm.
Part 5 tests it.