@@ -1398,21 +1398,23 @@ export const getDisabledReason = (
1398
1398
if (
1399
1399
category === "orm" &&
1400
1400
finalStack . database === "none" &&
1401
- optionId !== "none"
1401
+ optionId !== "none" &&
1402
+ finalStack . backend !== "self"
1402
1403
) {
1403
1404
return "ORM requires a database. Select a database first (SQLite, PostgreSQL, or MongoDB)." ;
1404
1405
}
1405
1406
1406
1407
if (
1407
1408
category === "database" &&
1408
1409
optionId !== "none" &&
1409
- finalStack . orm === "none"
1410
+ finalStack . orm === "none" &&
1411
+ finalStack . backend !== "self"
1410
1412
) {
1411
1413
return "Database requires an ORM. Select an ORM first (Drizzle, Prisma, or Mongoose)." ;
1412
1414
}
1413
1415
1414
1416
if ( category === "database" && optionId === "mongodb" ) {
1415
- if ( finalStack . orm === "none" ) {
1417
+ if ( finalStack . orm === "none" && finalStack . backend !== "self" ) {
1416
1418
return "MongoDB requires an ORM. Select Prisma or Mongoose ORM first." ;
1417
1419
}
1418
1420
if ( finalStack . orm !== "prisma" && finalStack . orm !== "mongoose" ) {
@@ -1427,7 +1429,7 @@ export const getDisabledReason = (
1427
1429
}
1428
1430
1429
1431
if ( category === "database" && optionId === "sqlite" ) {
1430
- if ( finalStack . orm === "none" ) {
1432
+ if ( finalStack . orm === "none" && finalStack . backend !== "self" ) {
1431
1433
return "SQLite requires an ORM. Select Drizzle or Prisma ORM first." ;
1432
1434
}
1433
1435
if ( finalStack . dbSetup === "mongodb-atlas" ) {
@@ -1481,13 +1483,13 @@ export const getDisabledReason = (
1481
1483
if ( finalStack . database === "mongodb" ) {
1482
1484
return "Drizzle ORM does not support MongoDB. Use Prisma or Mongoose ORM instead." ;
1483
1485
}
1484
- if ( finalStack . database === "none" ) {
1486
+ if ( finalStack . database === "none" && finalStack . backend !== "self" ) {
1485
1487
return "Drizzle ORM requires a database. Select a database first (SQLite, PostgreSQL, or MySQL)." ;
1486
1488
}
1487
1489
}
1488
1490
1489
1491
if ( category === "orm" && optionId === "prisma" ) {
1490
- if ( finalStack . database === "none" ) {
1492
+ if ( finalStack . database === "none" && finalStack . backend !== "self" ) {
1491
1493
return "Prisma ORM requires a database. Select a database first (SQLite, PostgreSQL, MySQL, or MongoDB)." ;
1492
1494
}
1493
1495
if ( finalStack . dbSetup === "turso" && finalStack . database !== "sqlite" ) {
0 commit comments