MCPcopy Create free account
hub / github.com/vercel/vercel / containerReuseKey

Function containerReuseKey

packages/container/src/dev.ts:426–428  ·  view source on GitHub ↗

* Stable identity for a dev container so repeat requests reuse the same running * container. A service is unique by name; a root (non-service) deploy is unique * by its work directory.

(options: StartDevServerOptions)

Source from the content-addressed store, hash-verified

424 * by its work directory.
425 */
426function containerReuseKey(options: StartDevServerOptions): string {
427 return options.service?.name ?? `root:${options.workPath}`;
428}
429
430/**
431 * Start a container service locally for `vercel dev`, reusing an already-running

Callers 1

startDevServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected