Skip to content

Commit d7f0121

Browse files
ldanilekConvex, Inc.
authored and
Convex, Inc.
committed
proof of concept for npx convex self-host (#33831)
create a proof of concept for an `npx convex self-host` subcommand, with `npx convex self-host dev` beneath it. eventually we should put lots of other commands beneath it too. To avoid code duplication, move the deployment-agnostic code to `devAgainstDeployment`, and deployment-agnostic CLI options to our `Command.prototype` override, and deployment-agnostic CLI option validation to `validateDevOptions`. Thus all of the shared functionality can use shared code. GitOrigin-RevId: 0a0f330c35e306f631cd9fae4fcff77b1625963e
1 parent 3173002 commit d7f0121

File tree

9 files changed

+622
-469
lines changed

9 files changed

+622
-469
lines changed

npm-packages/convex/src/cli/configure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export async function deploymentCredentialsOrConfigure(
159159
return { deploymentName, url, adminKey };
160160
}
161161

162-
async function handleManuallySetUrlAndAdminKey(
162+
export async function handleManuallySetUrlAndAdminKey(
163163
ctx: Context,
164164
cmdOptions: { url: string; adminKey: string },
165165
) {

0 commit comments

Comments
 (0)