Skip to content

Commit 7e91e8b

Browse files
CarlosZieglerclaude
andcommitted
fix: resolve TypeScript error in database validate callback
Default parameter for validate callback to handle `string | undefined` from @clack/prompts. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 8209e8b commit 7e91e8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/phases/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export async function runDatabase(state: SetupState): Promise<SetupState> {
7878
const url = await text({
7979
message: "Enter your DATABASE_URL:",
8080
placeholder: "postgresql://user:pass@host:5432/mydb",
81-
validate: (v) => {
81+
validate: (v = "") => {
8282
if (!isValidPostgresUrl(v)) {
8383
return "Must start with postgresql:// or postgres://";
8484
}

0 commit comments

Comments
 (0)