mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix supabase flag validation
This commit is contained in:
5
.changeset/wild-tigers-swim.md
Normal file
5
.changeset/wild-tigers-swim.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-better-t-stack": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
add supabase flag validation
|
||||||
@@ -736,6 +736,13 @@ function processAndValidateFlags(
|
|||||||
);
|
);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
} else if (dbSetup === "supabase") {
|
||||||
|
if (effectiveDatabase !== "postgres") {
|
||||||
|
consola.fatal(
|
||||||
|
`Supabase setup requires PostgreSQL. Cannot use --db-setup supabase with --database ${effectiveDatabase}.`,
|
||||||
|
);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
} else if (dbSetup === "prisma-postgres") {
|
} else if (dbSetup === "prisma-postgres") {
|
||||||
if (effectiveDatabase !== "postgres") {
|
if (effectiveDatabase !== "postgres") {
|
||||||
consola.fatal(
|
consola.fatal(
|
||||||
|
|||||||
Reference in New Issue
Block a user