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

Function assertDeploymentPath

packages/client/src/collect-deployment-files.ts:29–42  ·  view source on GitHub ↗
(
  path: VercelClientOptions['path'] | undefined,
  debug: Debug
)

Source from the content-addressed store, hash-verified

27}
28
29export function assertDeploymentPath(
30 path: VercelClientOptions['path'] | undefined,
31 debug: Debug
32): asserts path is VercelClientOptions['path'] {
33 if (typeof path !== 'string' && !Array.isArray(path)) {
34 debug(
35 `Error: 'path' is expected to be a string or an array. Received ${typeof path}`
36 );
37 throw new DeploymentError({
38 code: 'missing_path',
39 message: 'Path not provided',
40 });
41 }
42}
43
44export async function collectDeploymentFiles(
45 path: VercelClientOptions['path'] | undefined,

Callers 2

buildCreateDeploymentFunction · 0.90
collectDeploymentFilesFunction · 0.85

Calls 1

debugFunction · 0.50

Tested by

no test coverage detected