fix supabase flag validation

This commit is contained in:
Aman Varshney
2025-05-13 20:02:47 +05:30
parent 5c5a4b2293
commit 0631b23a5e
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
add supabase flag validation

View File

@@ -736,6 +736,13 @@ function processAndValidateFlags(
);
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") {
if (effectiveDatabase !== "postgres") {
consola.fatal(