convex
Version:
Client for the Convex Cloud
20 lines • 1.06 kB
TypeScript
import { Context } from "../../bundler/context.js";
declare const FRAMEWORKS: readonly ["create-react-app", "Next.js", "Vite", "Remix", "SvelteKit", "Expo"];
type Framework = (typeof FRAMEWORKS)[number];
type ConvexUrlWriteConfig = {
envFile: string;
envVar: string;
existingFileContent: string | null;
} | null;
export declare function writeConvexUrlToEnvFile(ctx: Context, value: string): Promise<ConvexUrlWriteConfig>;
export declare function changedEnvVarFile(existingFileContent: string | null, envVarName: string, envVarValue: string, commentAfterValue?: string, commentOnPreviousLine?: string): string | null;
export declare function getEnvVarRegex(envVarName: string): RegExp;
export declare function suggestedEnvVarName(ctx: Context): Promise<{
detectedFramework?: Framework;
envVar: string;
}>;
export declare function buildEnvironment(): string | boolean;
export declare function gitBranchFromEnvironment(): string | null;
export declare function isNonProdBuildEnvironment(): boolean;
export {};
//# sourceMappingURL=envvars.d.ts.map