diff --git a/npm-packages/convex/src/cli/lib/api.ts b/npm-packages/convex/src/cli/lib/api.ts index 97966340..6a57eda1 100644 --- a/npm-packages/convex/src/cli/lib/api.ts +++ b/npm-packages/convex/src/cli/lib/api.ts @@ -78,70 +78,6 @@ export async function createProject( }; } -// Init -// Provision a new empty project and return the new deployment credentials. -export async function createProjectProvisioningDevOrProd( - ctx: Context, - { - teamSlug: selectedTeamSlug, - projectName, - }: { teamSlug: string; projectName: string }, - firstDeploymentType: DeploymentType, -): Promise<{ - projectSlug: string; - teamSlug: string; - deploymentName: string; - url: string; - adminKey: AdminKey; - projectsRemaining: number; -}> { - const provisioningArgs = { - team: selectedTeamSlug, - projectName, - deploymentType: firstDeploymentType, - backendVersionOverride: process.env.CONVEX_BACKEND_VERSION_OVERRIDE, - }; - const data = await bigBrainAPI({ - ctx, - method: "POST", - url: "create_project", - data: provisioningArgs, - }); - const { - projectSlug, - teamSlug, - deploymentName, - adminKey, - projectsRemaining, - prodUrl: url, - } = data; - if ( - projectSlug === undefined || - teamSlug === undefined || - deploymentName === undefined || - url === undefined || - adminKey === undefined || - projectsRemaining === undefined - ) { - const error = - "Unexpected response during provisioning: " + JSON.stringify(data); - return await ctx.crash({ - exitCode: 1, - errorType: "transient", - errForSentry: error, - printedMessage: error, - }); - } - return { - projectSlug, - teamSlug, - deploymentName, - url, - adminKey, - projectsRemaining, - }; -} - // Dev export async function fetchDeploymentCredentialsForName( ctx: Context,