diff --git a/src/cli/lib/envvars.ts b/src/cli/lib/envvars.ts index 0c7df97..d5081cc 100644 --- a/src/cli/lib/envvars.ts +++ b/src/cli/lib/envvars.ts @@ -13,6 +13,7 @@ const FRAMEWORKS = [ "Vite", "Remix", "SvelteKit", + "Expo", ] as const; type Framework = (typeof FRAMEWORKS)[number]; @@ -109,6 +110,14 @@ export async function suggestedEnvVarName(ctx: Context): Promise<{ }; } + const isExpo = "expo" in packages; + if (isExpo) { + return { + detectedFramework: "Expo", + envVar: "EXPO_PUBLIC_CONVEX_URL", + }; + } + const isRemix = "@remix-run/dev" in packages; if (isRemix) { return { @@ -221,6 +230,7 @@ const EXPECTED_NAMES = new Set([ "NEXT_PUBLIC_CONVEX_URL", "VITE_CONVEX_URL", "REACT_APP_CONVEX_URL", + "EXPO_PUBLIC_CONVEX_URL", ]); export function buildEnvironment(): string | boolean {