UNPKG

convex

Version:

Client for the Convex Cloud

31 lines 1.55 kB
import { Context } from "../../bundler/context.js"; export declare const CONVEX_DEPLOYMENT_VAR_NAME = "CONVEX_DEPLOYMENT"; export declare function getTargetDeploymentName(): string | null; export declare function getConfiguredDeploymentFromEnvVar(): { type: "dev" | "prod" | "preview" | null; name: string | null; }; export declare function stripDeploymentTypePrefix(deployment: string): string; export declare function writeDeploymentEnvVar(ctx: Context, deploymentType: "dev" | "prod", deployment: { team: string; project: string; deploymentName: string; }): Promise<{ wroteToGitIgnore: boolean; }>; export declare function eraseDeploymentEnvVar(ctx: Context): Promise<boolean>; export declare function changesToEnvVarFile(existingFile: string | null, deploymentType: "dev" | "prod", { team, project, deploymentName, }: { team: string; project: string; deploymentName: string; }): string | null; export declare function changesToGitIgnore(existingFile: string | null): string | null; export declare function getDeploymentNameFromAdminKey(): string | null; export declare function deploymentNameFromAdminKeyOrCrash(ctx: Context, adminKey: string): Promise<string>; export declare function isPreviewDeployKey(adminKey: string): boolean; export declare function deploymentTypeFromAdminKey(adminKey: string): string; export declare function getTeamAndProjectFromPreviewAdminKey(ctx: Context, adminKey: string): Promise<{ teamSlug: string; projectSlug: string; }>; //# sourceMappingURL=deployment.d.ts.map