Skip to content

Commit 73d860a

Browse files
thomasballingerConvex, Inc.
authored andcommitted
disable unified push codepath until client point release (#41605)
GitOrigin-RevId: 51f87471fb245572fcad6fa68cc0c67a3335edad
1 parent 9ff6b5c commit 73d860a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

npm-packages/convex/src/cli/lib/components.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ export async function runPush(ctx: Context, options: PushOptions) {
150150
const convexDir = functionsDir(configPath, projectConfig);
151151
const componentRootPath = await findComponentRootPath(ctx, convexDir);
152152
if (
153-
!ctx.fs.exists(componentRootPath) &&
154-
process.env.USE_LEGACY_PUSH === "true"
153+
ctx.fs.exists(componentRootPath) ||
154+
process.env.USE_COMPONENTS_PUSH === "true"
155155
) {
156-
await runNonComponentsPush(ctx, options, configPath, projectConfig);
157-
} else {
158156
await runComponentsPush(ctx, options, configPath, projectConfig);
157+
} else {
158+
await runNonComponentsPush(ctx, options, configPath, projectConfig);
159159
}
160160
}
161161

0 commit comments

Comments
 (0)