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

Function processDeployment

packages/cli/src/util/deploy/process-deployment.ts:37–380  ·  view source on GitHub ↗
({
  org,
  projectName,
  isSettingUpProject,
  archive,
  skipAutoDetectionConfirmation,
  noWait,
  withFullLogs,
  agent,
  manual,
  jsonOutput,
  linkedProject,
  ...args
}: {
  now: Now;
  path: string;
  requestBody: DeploymentOptions;
  quiet: boolean;
  force?: boolean;
  withCache?: boolean;
  org: Org;
  prebuilt: boolean;
  vercelOutputDir?: string;
  projectName: string;
  isSettingUpProject: boolean;
  archive?: ArchiveFormat;
  skipAutoDetectionConfirmation?: boolean;
  rootDirectory?: string | null;
  noWait?: boolean;
  withFullLogs?: boolean;
  agent?: Agent;
  bulkRedirectsPath?: string | null;
  manual?: boolean;
  jsonOutput?: boolean;
  linkedProject?: Project;
})

Source from the content-addressed store, hash-verified

35}
36
37export default async function processDeployment({
38 org,
39 projectName,
40 isSettingUpProject,
41 archive,
42 skipAutoDetectionConfirmation,
43 noWait,
44 withFullLogs,
45 agent,
46 manual,
47 jsonOutput,
48 linkedProject,
49 ...args
50}: {
51 now: Now;
52 path: string;
53 requestBody: DeploymentOptions;
54 quiet: boolean;
55 force?: boolean;
56 withCache?: boolean;
57 org: Org;
58 prebuilt: boolean;
59 vercelOutputDir?: string;
60 projectName: string;
61 isSettingUpProject: boolean;
62 archive?: ArchiveFormat;
63 skipAutoDetectionConfirmation?: boolean;
64 rootDirectory?: string | null;
65 noWait?: boolean;
66 withFullLogs?: boolean;
67 agent?: Agent;
68 bulkRedirectsPath?: string | null;
69 manual?: boolean;
70 jsonOutput?: boolean;
71 linkedProject?: Project;
72}) {
73 const {
74 now,
75 path,
76 requestBody,
77 force,
78 withCache,
79 quiet,
80 prebuilt,
81 vercelOutputDir,
82 rootDirectory,
83 bulkRedirectsPath,
84 } = args;
85
86 const client = now._client;
87
88 // The ▲ gutter belongs on the Aliased row, which only prints when we wait
89 // for alias assignment and domains are auto-assigned. When that row won't
90 // print (--no-wait, --skip-domain), fall back to ▲ on the Production row.
91 const aliasedRowWillPrint =
92 !noWait && requestBody.autoAssignCustomDomains !== false;
93
94 const { env = {} } = requestBody;

Callers 1

createMethod · 0.85

Calls 15

printAlignedLabelFunction · 0.90
displayBuildLogsFunction · 0.90
parseLogLinesFunction · 0.90
updateProgressFunction · 0.85
stopSpinnerFunction · 0.85
printInspectUrlFunction · 0.85
printEventsFunction · 0.85
getProjectByNameOrIdFunction · 0.85
eraseLinesFunction · 0.85
debugMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected