File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
apps/web/src/app/(home)/new/_components Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1293,7 +1293,7 @@ export const getDisabledReason = (
1293
1293
finalStack . database === "none" &&
1294
1294
optionId !== "none"
1295
1295
) {
1296
- return "ORM requires a database. Select a database first (SQLite, PostgreSQL, MySQL, or MongoDB)." ;
1296
+ return "ORM requires a database. Select a database first (SQLite, PostgreSQL, or MongoDB)." ;
1297
1297
}
1298
1298
1299
1299
if (
@@ -1584,6 +1584,21 @@ export const getDisabledReason = (
1584
1584
}
1585
1585
}
1586
1586
1587
+ if ( category === "dbSetup" && optionId === "supabase" ) {
1588
+ if ( ( finalStack . database as string ) !== "postgres" ) {
1589
+ return "Supabase requires PostgreSQL database. Select PostgreSQL first." ;
1590
+ }
1591
+ }
1592
+
1593
+ if (
1594
+ category === "database" &&
1595
+ ( finalStack . dbSetup as string ) === "supabase"
1596
+ ) {
1597
+ if ( optionId !== "postgres" ) {
1598
+ return "Selected DB Setup 'Supabase' requires PostgreSQL. Select PostgreSQL or change DB Setup." ;
1599
+ }
1600
+ }
1601
+
1587
1602
return null ;
1588
1603
} ;
1589
1604
You can’t perform that action at this time.
0 commit comments