---
id: 20260729-T0-13
title: "Vercel Sandbox 新增分支功能，可基于快照复制开发环境"
title_en: "Vercel Sandbox Adds Forking to Copy Dev Environments from Snapshots"
url: https://ai.daily.yangsir.net/daily/20260729-T0-13
issue_date: 2026-07-29
publish_date: 2026-07-28T04:00:00.000Z
category: release
source_name: "Vercel Blog"
source_url: https://vercel.com/changelog/vercel-sandbox-supports-forking
---

# Vercel Sandbox 新增分支功能，可基于快照复制开发环境

Vercel Sandbox 现已支持分支（fork）功能，开发者可通过 `Sandbox.fork()` 方法基于当前快照创建新的沙箱环境，并继承原环境的配置和变量。如果源沙箱正在运行，分支会使用最新的已保存状态，而非实时内存状态；若无快照则回退为空白沙箱。这一更新让开发者能更灵活地管理隔离开发环境。

## English Version

**Vercel Sandbox Adds Forking to Copy Dev Environments from Snapshots**

Vercel Sandbox now supports forking via `Sandbox.fork()`, creating new environments from a source's snapshot while inheriting configs and variables. Forks use the latest saved state (not live memory) if the source is running, falling back to a blank sandbox if no snapshot exists. This gives developers more flexible, isolated dev environments.

---

**来源**：[Vercel Blog](https://vercel.com/changelog/vercel-sandbox-supports-forking)

**详情页**：https://ai.daily.yangsir.net/daily/20260729-T0-13

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*