mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix(web): use finalStack for Supabase checks
This commit is contained in:
@@ -1293,7 +1293,7 @@ export const getDisabledReason = (
|
|||||||
finalStack.database === "none" &&
|
finalStack.database === "none" &&
|
||||||
optionId !== "none"
|
optionId !== "none"
|
||||||
) {
|
) {
|
||||||
return "ORM requires a database. Select a database first (SQLite, PostgreSQL, MySQL, or MongoDB).";
|
return "ORM requires a database. Select a database first (SQLite, PostgreSQL, or MongoDB).";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
@@ -1584,6 +1584,21 @@ export const getDisabledReason = (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (category === "dbSetup" && optionId === "supabase") {
|
||||||
|
if ((finalStack.database as string) !== "postgres") {
|
||||||
|
return "Supabase requires PostgreSQL database. Select PostgreSQL first.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
category === "database" &&
|
||||||
|
(finalStack.dbSetup as string) === "supabase"
|
||||||
|
) {
|
||||||
|
if (optionId !== "postgres") {
|
||||||
|
return "Selected DB Setup 'Supabase' requires PostgreSQL. Select PostgreSQL or change DB Setup.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user