Skip to content

Commit b2f10f0

Browse files
authored
fix(cli): require hostname (#5328)
restores go cli parity for `supabase domains create` by requiring `--custom-hostname` in the ts legacy shim instead of only failing later in go
1 parent 46cc858 commit b2f10f0

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

apps/cli/src/legacy/commands/domains/create/create.command.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const config = {
99
),
1010
customHostname: Flag.string("custom-hostname").pipe(
1111
Flag.withDescription("The custom hostname to use for your Supabase project."),
12-
Flag.optional,
1312
),
1413
} as const;
1514

apps/cli/src/legacy/commands/domains/create/create.handler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const legacyDomainsCreate = Effect.fn("legacy.domains.create")(function*
88
const proxy = yield* LegacyGoProxy;
99
const args: string[] = ["domains", "create"];
1010
if (Option.isSome(flags.projectRef)) args.push("--project-ref", flags.projectRef.value);
11-
if (Option.isSome(flags.customHostname))
12-
args.push("--custom-hostname", flags.customHostname.value);
11+
args.push("--custom-hostname", flags.customHostname);
1312
yield* proxy.exec(args);
1413
});

0 commit comments

Comments
 (0)