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

Method create

packages/cli/src/util/index.ts:105–214  ·  view source on GitHub ↗
(
    path: string,
    {
      // Legacy
      nowConfig = {},

      // Latest
      name,
      project,
      prebuilt = false,
      vercelOutputDir,
      rootDirectory,
      meta,
      gitMetadata,
      regions,
      quiet = false,
      env,
      build,
      forceNew = false,
      withCache = false,
      target = null,
      projectSettings,
      skipAutoDetectionConfirmation,
      noWait,
      withFullLogs,
      autoAssignCustomDomains,
      agentName,
      manual,
      jsonOutput = false,
      linkedProject,
    }: CreateOptions,
    org: Org,
    isSettingUpProject: boolean,
    archive?: ArchiveFormat
  )

Source from the content-addressed store, hash-verified

103 }
104
105 async create(
106 path: string,
107 {
108 // Legacy
109 nowConfig = {},
110
111 // Latest
112 name,
113 project,
114 prebuilt = false,
115 vercelOutputDir,
116 rootDirectory,
117 meta,
118 gitMetadata,
119 regions,
120 quiet = false,
121 env,
122 build,
123 forceNew = false,
124 withCache = false,
125 target = null,
126 projectSettings,
127 skipAutoDetectionConfirmation,
128 noWait,
129 withFullLogs,
130 autoAssignCustomDomains,
131 agentName,
132 manual,
133 jsonOutput = false,
134 linkedProject,
135 }: CreateOptions,
136 org: Org,
137 isSettingUpProject: boolean,
138 archive?: ArchiveFormat
139 ) {
140 const requestBody = {
141 ...nowConfig,
142 env,
143 build,
144 name,
145 project,
146 meta,
147 gitMetadata,
148 regions,
149 target: target || undefined,
150 projectSettings,
151 source: 'cli',
152 actor: agentName,
153 autoAssignCustomDomains,
154 };
155
156 // Ignore specific items from vercel.json
157 delete requestBody.scope;
158 delete requestBody.github;
159 // `public` is no longer part of `VercelConfig`, but a user's
160 // vercel.json may still contain a stale value that must be stripped
161 // before sending to the API.
162 delete (requestBody as Record<string, unknown>).public;

Callers 15

handleDeploymentErrorMethod · 0.45
createDeployFunction · 0.45
deserializeOutputFunction · 0.45
parseQueryStringFunction · 0.45
processMessageFunction · 0.45
bootstrapFunction · 0.45
bootstrapFunction · 0.45
jquery.fancybox.jsFile · 0.45
loaderFunction · 0.45
test-helper.jsFile · 0.45
createLambdaFunction · 0.45

Calls 1

processDeploymentFunction · 0.85

Tested by 3

createLambdaFunction · 0.36
createPrerenderFunction · 0.36
createEdgeFunctionFunction · 0.36